[gst-devel] fakesink not working as a videosink with playbin2 ?

Vincent Torri vtorri at univ-evry.fr
Thu Oct 14 23:38:33 CEST 2010



On Fri, 15 Oct 2010, Stefan Kost wrote:

> Am 14.10.2010 17:44, schrieb Vincent Torri:
>>
>> Hey,
>>
>> basically, I create a playbin2, i pause the pipeline, i create a fakesink,
>> and set it as the video-sink for playbin2.
>>
>> When I play the file, the handoff callback of the fakesink is not called.
>> Instead, a new window is created, where the stream is rendered. It seems
>> that settin the video sink as the fakesink is not working (that is, i'm
>> doing something wrong). The code is below.
>>
>> Does someone see where the problem is ?
>
>
> Maybe you set it too late. Imho you should just be able to set "video-sink" to
> your fakesink instance right after playbin2 creation.

You're right. Setting it before pausing works. I tried to set the sink to 
NULL before pausing and setting the sink after, but it does not work too.

thank you

Vincent




More information about the gstreamer-devel mailing list