inter*src: No need to set caps manually on the pad
authorSebastian Dröge <sebastian@centricular.com>
Mon, 3 Nov 2014 15:24:33 +0000 (16:24 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 3 Nov 2014 15:24:33 +0000 (16:24 +0100)
basesrc does that for us already.

gst/inter/gstinteraudiosrc.c
gst/inter/gstintervideosrc.c

index 36c9e02b6b27c9f7021009b5251a2f2aa008891d..552339319da8b1dbbae501336948bec607c1f545 100644 (file)
@@ -228,7 +228,7 @@ gst_inter_audio_src_set_caps (GstBaseSrc * src, GstCaps * caps)
     return FALSE;
   }
 
-  return gst_pad_set_caps (src->srcpad, caps);
+  return TRUE;
 }
 
 static gboolean
index f5c3e029846368a4d4ba80e53f3d801125b3f8ac..3bad3b672f3e35762e767150de6c3a80ce5271dc 100644 (file)
@@ -242,7 +242,7 @@ gst_inter_video_src_set_caps (GstBaseSrc * base, GstCaps * caps)
   gst_video_frame_unmap (&dest_frame);
   intervideosrc->black_frame = dest;
 
-  return gst_pad_set_caps (GST_BASE_SRC_PAD (intervideosrc), caps);
+  return TRUE;
 }
 
 static gboolean