Set a fraction value

Jorge Fernandez Monteagudo jorgefm at cirsa.com
Mon May 13 22:34:07 PDT 2013


Hi all!

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?

Thanks!

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