After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 734471 - asfdemux: Should pass seek events upstream first
asfdemux: Should pass seek events upstream first
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
unspecified
Other All
: Normal normal
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-08-08 10:08 UTC by Guillaume Desmottes
Modified: 2014-09-16 15:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
asfdemux: send unsupported seek events upstream (2.47 KB, patch)
2014-08-08 10:11 UTC, Guillaume Desmottes
reviewed Details | Review
asfdemux: first try to delegate TIME seek events upstream (2.70 KB, patch)
2014-08-22 09:05 UTC, Guillaume Desmottes
committed Details | Review

Description Guillaume Desmottes 2014-08-08 10:08:57 UTC
asfdemux currently discards any seek event it doesn't support. It should pass them upstream instead giving a chance for another element (like dlnasrc) to handle it.
Comment 1 Guillaume Desmottes 2014-08-08 10:11:01 UTC
Created attachment 282892 [details] [review]
asfdemux: send unsupported seek events upstream

Upstream elements like dlnasrc may be able to handle the seek so we should
give them a chance rather than discarding the seek event.
Comment 2 Tim-Philipp Müller 2014-08-08 10:25:02 UTC
Please note that we have been using 'element: xyz' in bug titles for the last couple of years instead of '[element] xyz'.

I think what you want to do here is right in principle, but I'm not sure if the patch is right. asfdemux (and any demuxer, at least when operating in push mode) should already try sending a seek upstream first before attempting to process it itself. In your patch you do that as a fallback, but it should be tried first, and I'm sure it does that already for mms and rtsp, so question is why doesn't it do it for your case? Is your stream marked as non-seekable in the headers? Perhaps that's something that should be fixed too?
Comment 3 Edward Hervey 2014-08-12 05:34:26 UTC
As Tim mentioned, the upstream seek should be attempted first, regardless of any other settings.

If upstream is not seekable (for whatever reason), the upstream element should properly refuse it.

Can you flip the logic and try again ?
Comment 4 Guillaume Desmottes 2014-08-22 09:05:16 UTC
Created attachment 284171 [details] [review]
asfdemux: first try to delegate TIME seek events upstream

We should give a chance to upstream to handle TIME seek events before trying
to handle it in asfdemux.

Fix a bug where fast backward seeks where discarded right away because they
were not supported by asfdemux.
Comment 5 Thiago Sousa Santos 2014-09-16 15:23:26 UTC
asfdemux: first try to delegate TIME seek events upstream
    
    We should give a chance to upstream to handle TIME seek events before trying
    to handle it in asfdemux.
    
    Fix a bug where fast backward seeks where discarded right away because they
    were not supported by asfdemux.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=734471