ges_caps_set_simple was being called incorrectly
authorBrandon Lewis <brandon@collabora.co.uk>
Fri, 16 Jul 2010 15:38:44 +0000 (17:38 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 16 Jul 2010 16:18:03 +0000 (18:18 +0200)
ges/ges-timeline-pipeline.c

index befa2e6..d7cd704 100644 (file)
@@ -766,10 +766,10 @@ ges_timeline_pipeline_save_thumbnail (GESTimelinePipeline * self, int width, int
   caps = gst_caps_from_string (format);
 
   if (width > 1)
-    gst_caps_set_simple (caps, "width", width, NULL);
+    gst_caps_set_simple (caps, "width", G_TYPE_INT, width, NULL);
 
   if (height > 1)
-    gst_caps_set_simple (caps, "height", height, NULL);
+    gst_caps_set_simple (caps, "height", G_TYPE_INT, height, NULL);
 
   if (!(b = ges_timeline_pipeline_get_thumbnail_buffer (self, caps))) {
     gst_caps_unref (caps);
@@ -815,10 +815,10 @@ ges_timeline_pipeline_get_thumbnail_rgb24 (GESTimelinePipeline * self,
   caps = gst_caps_from_string ("video/x-raw-rgb,bpp=(int)24," "depth=(int)24");
 
   if (width != -1)
-    gst_caps_set_simple (caps, "width", (gint) width, NULL);
+    gst_caps_set_simple (caps, "width", G_TYPE_INT, (gint) width, NULL);
 
   if (height != -1)
-    gst_caps_set_simple (caps, "height", (gint) height, NULL);
+    gst_caps_set_simple (caps, "height", G_TYPE_INT, (gint) height, NULL);
 
   ret = ges_timeline_pipeline_get_thumbnail_buffer (self, caps);
   gst_caps_unref (caps);