Set a fraction value
Jorge Fernandez Monteagudo
jorgefm at cirsa.com
Tue May 14 02:15:21 PDT 2013
Yes!! you're right is a fraction type!
Thanks!
Jorge
________________________________________
From: gstreamer-devel-bounces+jorgefm=cirsa.com at lists.freedesktop.org [gstreamer-devel-bounces+jorgefm=cirsa.com at lists.freedesktop.org] On Behalf Of Tim-Philipp Müller [t.i.m at zen.co.uk]
Sent: Tuesday, May 14, 2013 10:59 AM
To: gstreamer-devel at lists.freedesktop.org
Subject: Re: Set a fraction value
On Tue, 2013-05-14 at 07:34 +0200, Jorge Fernandez Monteagudo wrote:
Hi,
> I have another begginer question. I'm trying to set a framerate fraction value in C code.
> I can set the value through the command line
>
> gst-launch-0.10 .... ! TIViddec2 engineName=codecServer framerate=24/1 ! ....
>
> but when I try to implement this on code I do
>
> gdouble framerate = 24.0 / 1.0;
> g_object_set( G_OBJECT(video_decode), "framerate", framerate, NULL );
>
> is it correct?
I'm going to assume that the "framerate" property is of a fraction type
and not a double type. If so, you have to do:
g_object_set (video_decode, "framerate", 24, 1, NULL);
or
gst_util_set_object_arg (G_OBJECT (video_decode), "framerate",
"24/1");
Cheers
-Tim
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario indicado, queda notificado de que la utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.
This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited by law. If this message has been received in error, please immediately notify us via e-mail and delete it.
More information about the gstreamer-devel
mailing list