How to reach GstPlayFlags for PlayBin through GObject introspection?

Nox Deleo noxdeleo at googlemail.com
Sat Dec 22 07:28:46 PST 2012


You're right on the money. The flags are being set fine. Thanks again.


On 22 December 2012 13:49, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:

> On Sat, 2012-12-22 at 13:25 +0000, Nox Deleo wrote:
>
> > Great, thanks. I gave it a try in the Python shell, but I'm not sure
> > I've got the usage right, since the flags don't seem to change:
>
> > >>> import gi
> > >>> gi.require_version('Gst', '1.0')
> > >>> from gi.repository import Gst
> > >>> Gst.init(None)
> > []
> > >>> playbin = Gst.ElementFactory.make('playbin', None)
> > >>> Gst.util_set_object_arg(playbin, 'flags', 'video')
> > >>> print(playbin.flags)
> > 32
> > >>> Gst.util_set_object_arg(playbin, 'flags', 'audio')
> > >>> print(playbin.flags)
> > 32
> > >>> Gst.util_set_object_arg(playbin, 'flags', 'audio+vis')
> > >>> print(playbin.flags)
> > 32
> >
> > Sorry if I've missed something obvious...didn't have the best night's
> > sleep.
>
> I suspect those are some other flags not related to playbin's flags
> property.
>
> Try with
>
> print playbin.get_property('flags')
>
> (the output of which might be a bit confusing, because we abuse one of
> the enum fields for the description).
>
> Cheers
>  -Tim
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20121222/1f63a94e/attachment.html>


More information about the gstreamer-devel mailing list