GNOME Bugzilla – Bug 688476
Seek in matroska file fails with not-negotiated error when using playsink
Last modified: 2013-03-21 14:42:04 UTC
The following pipeline fails after a seek with gstreamer 1.0.2 or 1.1.x, when dvdspu is not installed: gst-launch-1.0 playbin uri=http://absolut.zogzog.org/share/samples/mkv/bound.mkv video-sink='navseek seek-offset=60 ! xvimagesink' Here is a more specialized version, it does not fail if I use the subtitle overlay element directly instead of playsink: gst-launch-1.0 souphttpsrc location=http://absolut.zogzog.org/share/samples/mkv/bound.mkv ! matroskademux name=dmx \ multiqueue name=mq \ dmx.video_0 ! mq.sink_0 mq.src_0 ! avdec_h264 ! sink.video_raw_sink \ dmx.subtitle_0 ! mq.sink_1 mq.src_1 ! sink.text_sink \ playsink name=sink video-sink='navseek seek-offset=60 ! xvimagesink' flags=0x7 Displayed error is: Error displayed gstbasesrc.c(2791): gst_base_src_loop (): /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0: streaming task paused, reason not-negotiated (-4)
Created attachment 235315 [details] [review] Patch that fixes the issue Provided patch fixes the issue in a similar scenario than the one if it's described.
Created attachment 235318 [details] [review] Patch that fixes the issue Fix the condition check in gst_pad_link_full as it's not a boolean.
Created attachment 235321 [details] [review] Patch that fixes the issue It turns that some more stuff needs to be released.
Patch seems fine and fixes the issue for me, but I wonder what changed from 0.10 to 1.0 in subtitleoverlay that makes this needed?
I don't know what changed but the patch makes sense... it's not complete though. If after linking we switch to an unsupported subtitle stream it will still explode. I thought there was some logic in playsink and subtitleoverlay to handle this case gracefully without breaking playback completely
The problem might be the stricter caps checks in core
commit 383f58b0ed15c5fd14d2a760719295256f6ba545 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Thu Mar 21 15:37:31 2013 +0100 subtitleoverlay: Return ANY caps for the GET_CAPS query subtitleoverlay handles any caps, not just the ones for which a subtitle parser/renderer exist. It will just ignore any unsupported streams instead of causing an error. https://bugzilla.gnome.org/show_bug.cgi?id=688476