GNOME Bugzilla – Bug 705379
subtitleoverlay: negotiation error
Last modified: 2013-08-30 12:43:50 UTC
When playing videos with subtitles with playbin, I usually get the following error: suboverlay: GStreamer error: negotiation problem. (/home/rawoul/work/git/fbx6/buildroot/packages/gstpluginsbase/gitsrc/gst/playback/gstsubtitleoverlay.c(1054): _pad_blocked_cb (): /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:tbin/GstSubtitleOverlay:suboverlay: Subtitle sink is blocked but we have no subtitle caps) This is because the subtitle sink is blocked by a stream-start event, and at this point caps were not sent yet so this happens.
A crash can also happen if the video pad is blocked by its stream-start event, and the subtitle pad already received its caps. In this case the _link_renderer function fails because the video caps are ANY. Unfortunately I haven't been able to get a trace of the crash, I can't reproduce the race with gdb running.
That can probably be fixed by allowing everything until caps to pass through the pad and only block on the caps. Do you have a testcase for this? It worked for me a few days ago
I can't reproduce this anymore in master/1.1.4. I'll reopen the issue if I see it happening again. Thanks