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 768991 - oggdemux: fix unknown duration playing Ogg from HTTP
oggdemux: fix unknown duration playing Ogg from HTTP
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: 1.8.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-07-20 10:49 UTC by Vincent Penquerc'h
Modified: 2016-07-25 10:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
oggdemux: fix unknown duration playing Opus from HTTP (958 bytes, patch)
2016-07-20 10:49 UTC, Vincent Penquerc'h
none Details | Review
oggdemux: fix duration reporting in push mode in some cases (828 bytes, patch)
2016-07-20 11:14 UTC, Tim-Philipp Müller
committed Details | Review
oggdemux: fix unknown duration playing Ogg from HTTP (1.19 KB, patch)
2016-07-20 14:50 UTC, Vincent Penquerc'h
committed Details | Review

Description Vincent Penquerc'h 2016-07-20 10:49:02 UTC
This fixes seeking with gst-play-1.0 on an Ogg/Opus file played via http.
Comment 1 Vincent Penquerc'h 2016-07-20 10:49:42 UTC
Created attachment 331813 [details] [review]
oggdemux: fix unknown duration playing Opus from HTTP
Comment 2 Tim-Philipp Müller 2016-07-20 11:14:05 UTC
Created attachment 331816 [details] [review]
oggdemux: fix duration reporting in push mode in some cases

I had this patch pending, which I forgot to push (accidentally got git stashed it seems). I think it was for the same issue. Not sure which one is better though, just putting it out here for comparison.
Comment 3 Tim-Philipp Müller 2016-07-20 11:14:40 UTC
PS: is the 'opus' part relevant here at all?
Comment 4 Vincent Penquerc'h 2016-07-20 11:29:20 UTC
I don't think Opus is relevant here, but that's the test case I was using. I guess it makes more sense to remove this from the commit header, you're right.

Intersting about total_time. I have to admit I don't know the difference between those :)
Comment 5 Vincent Penquerc'h 2016-07-20 14:50:34 UTC
Created attachment 331827 [details] [review]
oggdemux: fix unknown duration playing Ogg from HTTP

How about that ? :)
Comment 6 Tim-Philipp Müller 2016-07-20 15:07:13 UTC
Did you try and figure out what the difference is?

I'd say just push it, I doubt it can make anything worse :)
Comment 7 Vincent Penquerc'h 2016-07-20 15:11:14 UTC
total_time is valid in pull mode. Both it and push_mode_length resolve to the exact same time when trying in push mode over http. I'm not sure why I did not use total_time directly when I made the push mode changes.
Comment 8 Vincent Penquerc'h 2016-07-21 09:43:49 UTC
commit 714e3b9741eb61174c3138fc7f3b92f81faf5ea6
Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Date:   Wed Jul 20 11:47:48 2016 +0100

    oggdemux: fix unknown duration playing Ogg over HTTP
    
    If the duration is not known from the chain, it might be known
    by the startup seek.
    
    This fixes failure to seek.
    
    Merged with a patch from Tim-Philipp Müller <tim@centricular.com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768991
Comment 9 Sebastian Dröge (slomo) 2016-07-25 10:24:35 UTC
Something for 1.8?
Comment 10 Tim-Philipp Müller 2016-07-25 10:38:58 UTC
Yes, should be fine. (famous last words etc.)