How to get "video-sink" from playbin

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get "video-sink" from playbin

Ash-25
Hello,
If I use playbin to automatically create a pipeline, and I want to force-aspect-ratio on the video sink, I have trouble trying a
 
g_object_get(G_OBJECT(playbin), "video-sink", &m_videosink, NULL);
 
During playback, if I query for video-sink on playbin, it returns NULL. How do I get the video-sink from the pipeline and set the force-aspect-ratio?


Stay in touch when you're away with Windows Live Messenger. IM anytime you're online.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to get "video-sink" from playbin

Kirill Kirichenko
On Thu, Jul 17, 2008 at 1:21 AM, Ash <[hidden email]> wrote:
> Hello,
> If I use playbin to automatically create a pipeline, and I want to
> force-aspect-ratio on the video sink, I have trouble trying a
>
> g_object_get(G_OBJECT(playbin), "video-sink", &m_videosink, NULL);
>
> During playback, if I query for video-sink on playbin, it returns NULL. How
> do I get the video-sink from the pipeline and set the force-aspect-ratio?
There is no way of doing that.
You can provide your own videosink and set up all properties you need.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel