Can't get dynamically added sinks to work.

Sebastian Dröge sebastian at centricular.com
Sat May 10 23:23:07 PDT 2014


On Do, 2014-05-08 at 16:24 -0400, Stirling Westrup wrote:
> Seems like the vaapi issue was one I'd caused by improperly installing our
> patches.
> 
> Now, thanks to the code in dynamic-tee-vsink.c, I've made some progress in
> figuring out what's been going wrong, but I'm still rather puzzled. On
> first inspection, my technique is almost identical to that in
> dynamic-tee-vsink.c. Sufficiently so that I would have expected my test
> code to run. However, by playing around with it, I've discovered some (to
> me) surprising things:
> 
> If you replace the use of decodebin by a simple videotestsrc (and
> consequently eliminate the pad-added callback), the program fails to run.
> In fact, it exhibits the same issues my test code does: It only outputs the
> first frame of output on the first added sink, newly added sinks don't
> appear after that, and removal of sinks fails completely.
> 
> However, If I then replace the fakesink with testsink, everything starts
> working again. As best I can figure out, this pipeline:
> 
>   videotestsrc ! tee ! fakesink
> 
> freezes up and stops passing buffers, but without generating any sort of
> error. After that, any attempt to add or remove sinks fails to work. I have
> no idea why this might be so.

Not sure what the problem is, but the attached code with videotestsrc
works fine here. Does it also work for you?

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dynamic-tee-vsink.c
Type: text/x-csrc
Size: 7608 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140511/860ceced/attachment-0001.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140511/860ceced/attachment-0001.sig>


More information about the gstreamer-devel mailing list