<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 10/26/2011 03:12 AM, Rossana Guerra wrote:
<blockquote
cite="mid:CAAMjx-fc2SXEvMRM0UhtwPx455A6bwK+=iv718+YU8m01p50JA@mail.gmail.com"
type="cite">
<pre wrap="">Hi I trying to control the position property of a smptealpha element. It
controls the opacity of the alpha channel,</pre>
</blockquote>
no, position controls the transition of the fade. 0.0:input1,
1.0:input2.<br>
<blockquote
cite="mid:CAAMjx-fc2SXEvMRM0UhtwPx455A6bwK+=iv718+YU8m01p50JA@mail.gmail.com"
type="cite">
<pre wrap=""> 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.
</pre>
</blockquote>
<br>
What is not working? The code snippet looks more of less okay. Maybe
you can post a full standalone example.<br>
<br>
Stefan<br>
<blockquote
cite="mid:CAAMjx-fc2SXEvMRM0UhtwPx455A6bwK+=iv718+YU8m01p50JA@mail.gmail.com"
type="cite">
<pre wrap="">
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;
</pre>
</blockquote>
guint64 duracion = 500;<br>
<blockquote
cite="mid:CAAMjx-fc2SXEvMRM0UhtwPx455A6bwK+=iv718+YU8m01p50JA@mail.gmail.com"
type="cite">
<pre wrap=""> 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);
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>