Invalid property's type for a controller at runtime: `G_VALUE_TYPE (value) == self->priv->type' failed

Stefan Sauer ensonic at hora-obscura.de
Wed Oct 26 02:50:44 PDT 2011


On 10/26/2011 03:12 AM, Rossana Guerra wrote:
> Hi I trying to control the position property of a smptealpha element. It
> controls the opacity of the alpha channel,
no, position controls the transition of the fade. 0.0:input1, 1.0:input2.
>  it varies from 0.0 to 1.0.
> The duration of this setting is 500ms.
>
> I am working around this problem, it happens at runtime, I can't figure out
> what it's wrong.

What is not working? The code snippet looks more of less okay. Maybe you
can post a full standalone example.

Stefan
> Thanks and regards,
>
> Rossana
>
>
> Here's the code;
> _____________
>
>
> gst_interpolation_control_source_set: assertion `G_VALUE_TYPE (value) ==
> self->priv->type' failed
>
> // Agrego Controlador
>
>   gdouble duracion = 500;
guint64 duracion = 500;
>   GstController * ctrl = gst_object_control_properties(G_OBJECT(smpte),
> "position",NULL);
>
>   if (ctrl == NULL)
>   {
>         GST_WARNING ("No puede controlar el elemento fuente\n");
>         return 0;
>   }
>
>
>   // Todo valor GValue debe inicializarse en 0
>   GValue val_double = { 0, };
>   g_value_init (&val_double, G_TYPE_DOUBLE);
>
>
>   // Seteo modo de interpolacion
>
>   GstInterpolationControlSource * csource =
> gst_interpolation_control_source_new();
>
>
> gst_interpolation_control_source_set_interpolation_mode(csource,GST_INTERPOLATE_LINEAR);
>
>   // Seteo primer valor
>   g_value_set_double(&val_double, 0.0);
>   gst_interpolation_control_source_set(csource,(0 *
> GST_MSECOND),&val_double);
>
>   // Seteo segundo valor
>   g_value_set_double (&val_double, 1.0);
>
> gst_interpolation_control_source_set(csource,(duracion*GST_MSECOND),&val_double);
>
>   gst_controller_set_control_source (ctrl, "position", GST_CONTROL_SOURCE
> (csource));
>
>   g_object_unref (csource);
>   g_value_unset (&val_double);
>
>
>
> _______________________________________________
> 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/20111026/7cc8fda6/attachment.htm>


More information about the gstreamer-devel mailing list