GNOME Bugzilla – Bug 721824
Query duration and position from source element
Last modified: 2014-06-14 12:48:17 UTC
Created attachment 265749 [details] [review] Query duration and position from source element This change queries duration and position from the playbin's source element instead of directly from playbin. This fixes DLNA CTT 7.3.157.8.
Review of attachment 265749 [details] [review]: +1
Damn, this seems to break at least with some element/gstreamer version combo. I'm playing a mp3 and the source element exists but its position stays at 0 (while the position in playbin at least changes, not entirely sure if it's a useful value for seeking). I'll debug a bit further and file a new bug.
I suppose it breaks as the normal soupsrc can't possibly know the duration. dlnasrc can, but that's not the fix. I'm reverting the commit and re-opening the bug.
This actually seems to be a non-bug with GStreamer >= 1.2.4, iow works fine for me when reverted.
Ok, duration is still broken for videos. Wonder why that is...
Created attachment 278212 [details] [review] renderer-gst: Update video duration On READY->PAUSED state change, check for duration availability and signalize it. Signed-off-by: Jens Georg <mail@jensge.org>
Comment on attachment 278212 [details] [review] renderer-gst: Update video duration Attachment 278212 [details] pushed as 0c32705 - renderer-gst: Update video duration
Created attachment 278441 [details] [review] renderer-gst: Use duration from meta-data Until we get the proper duration from the pipeline, use the one supplied in the meta-data if available. Signed-off-by: Jens Georg <mail@jensge.org>