gst_element_query_duration
badea_ion at gmx.fr
badea_ion at gmx.fr
Thu Jun 27 04:46:39 PDT 2013
Hello all,
I'm using a pipeline in the form
appsrc ! volume ! audioconvert ! audioresample !alsasink
I force the caps of appsrc and use some other properties like:
caps = gst_caps_new_simple ("audio/x-raw-int",
"endianness", G_TYPE_INT, DEFAULT_ENDIANESS,
"channels", G_TYPE_INT, DEFAULT_CHANNELS,
"width", G_TYPE_INT, DEFAULT_BITS_PER_SAMPLE,
"depth", G_TYPE_INT , DEFAULT_BITS_PER_SAMPLE,
"signed", G_TYPE_BOOLEAN, TRUE,
"rate", G_TYPE_INT , DEFAULT_SAMPLE_RATE,
NULL);
g_object_set (source, "caps", caps, NULL);
g_object_set (source, "max-bytes", (guint64) 8192, NULL);
g_object_set (source, "is-live", FALSE, NULL);
g_object_set (source, "block", TRUE, NULL);
g_object_set (sink, "sync", FALSE, NULL);
>From time to time I interogate the pipeline to get the current position using
GstFormat fmt = GST_FORMAT_TIME;
gint64 elapsed;
gst_element_query_position(pipeline, &fmt, &elapsed);
However this doesn't work, It used to work fine on Gstreamer 0.10.28, but now I'm using 0.10.36 and it doesn't work.
Any help?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130627/23fd42e7/attachment.html>
More information about the gstreamer-devel
mailing list