/**
* ges_play_sink_convert_frame:
- * @playsink: The olaysink to get last frame from
+ * @playsink: The playsink to get last frame from
* @caps: The caps defining the format the return value will have
*
* Get the last buffer @playsink showed
ges_init ();
- track = ges_track_new (GES_TRACK_TYPE_AUDIO, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_AUDIO, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
object = (GESTimelineObject *)
/* Give the Timeline a Track */
GST_DEBUG ("Create a Track");
- track = ges_track_new (GES_TRACK_TYPE_CUSTOM, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_CUSTOM, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
GST_DEBUG ("Add the track to the timeline");
fail_unless (layer != NULL);
/* Give the Timeline a Track */
GST_DEBUG ("Create a Track");
- track = ges_track_new (GES_TRACK_TYPE_CUSTOM, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_CUSTOM, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
GST_DEBUG ("Add the track to the timeline");
fail_unless (layer != NULL);
/* Give the Timeline a Track */
GST_DEBUG ("Create a Track");
- track = ges_track_new (GES_TRACK_TYPE_CUSTOM, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_CUSTOM, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
/* Create a source and add it to the Layer */
fail_unless (layer != NULL);
/* Give the Timeline a Track */
GST_DEBUG ("Create a Track");
- track = ges_track_new (GES_TRACK_TYPE_CUSTOM, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_CUSTOM, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
/* Create a source and add it to the Layer */
fail_unless (ges_timeline_add_layer (timeline, layer));
fail_if (g_object_is_floating (layer));
- track = ges_track_new (GES_TRACK_TYPE_CUSTOM, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_CUSTOM, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
fail_unless (ges_timeline_add_track (timeline, track));
fail_unless (ges_meta_container_get_float (GES_META_CONTAINER (layer),
"ges-test", &result));
- assert_equals_int64 (result, 23.456);
+ assert_equals_float (result, 23.456f);
}
GST_END_TEST;
ges_init ();
- track = ges_track_new (GES_TRACK_TYPE_VIDEO, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_VIDEO, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
object = (GESTimelineObject *)
/* test xpos */
g_object_set (source, "xpos", (gdouble) 0.5, NULL);
g_object_get (source, "xpos", &xpos, NULL);
- assert_equals_int (xpos, 0.5);
+ assert_equals_float (xpos, 0.5);
xpos = ges_track_text_overlay_get_xpos (GES_TRACK_TEXT_OVERLAY (trobj));
- assert_equals_int (xpos, 0.5);
+ assert_equals_float (xpos, 0.5);
/* test ypos */
g_object_set (source, "ypos", (gdouble) 0.33, NULL);
g_object_get (source, "ypos", &ypos, NULL);
- assert_equals_int (ypos, 0.33);
+ assert_equals_float (ypos, 0.33);
ypos = ges_track_text_overlay_get_ypos (GES_TRACK_TEXT_OVERLAY (trobj));
- assert_equals_int (ypos, 0.33);
+ assert_equals_float (ypos, 0.33);
GST_DEBUG ("removing the source");
timeline = ges_timeline_new ();
layer = (GESTimelineLayer *) ges_simple_timeline_layer_new ();
fail_unless (ges_timeline_add_layer (timeline, layer));
- track = ges_track_new (GES_TRACK_TYPE_CUSTOM, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_CUSTOM, gst_caps_ref (GST_CAPS_ANY));
fail_unless (ges_timeline_add_track (timeline, track));
source = ges_custom_timeline_source_new (my_fill_track_func, NULL);
ges_init ();
- track = ges_track_new (GES_TRACK_TYPE_CUSTOM, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_CUSTOM, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
timeline = ges_timeline_new ();
ges_init ();
- track = ges_track_new (GES_TRACK_TYPE_CUSTOM, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_CUSTOM, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
timeline = ges_timeline_new ();
ges_init ();
- track = ges_track_new (GES_TRACK_TYPE_CUSTOM, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_CUSTOM, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
timeline = ges_timeline_new ();
ges_init ();
- track = ges_track_new (GES_TRACK_TYPE_CUSTOM, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_CUSTOM, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
object =
ges_init ();
- track = ges_track_new (GES_TRACK_TYPE_CUSTOM, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_CUSTOM, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
object =
ges_init ();
- track = ges_track_new (GES_TRACK_TYPE_CUSTOM, GST_CAPS_ANY);
+ track = ges_track_new (GES_TRACK_TYPE_CUSTOM, gst_caps_ref (GST_CAPS_ANY));
fail_unless (track != NULL);
object =
/* test xpos */
g_object_set (source, "xpos", (gdouble) 0.25, NULL);
g_object_get (source, "xpos", &xpos, NULL);
- assert_equals_int (xpos, 0.25);
+ assert_equals_float (xpos, 0.25);
xpos = ges_track_title_source_get_xpos (GES_TRACK_TITLE_SOURCE (trobj));
- assert_equals_int (xpos, 0.25);
+ assert_equals_float (xpos, 0.25);
/* test ypos */
g_object_set (source, "ypos", (gdouble) 0.66, NULL);
g_object_get (source, "ypos", &ypos, NULL);
- assert_equals_int (ypos, 0.66);
+ assert_equals_float (ypos, 0.66);
xpos = ges_track_title_source_get_xpos (GES_TRACK_TITLE_SOURCE (trobj));
- assert_equals_int (ypos, 0.66);
+ assert_equals_float (ypos, 0.66);
GST_DEBUG ("removing the source");