nego if not done yet
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 13 Jan 2005 17:10:22 +0000 (17:10 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 13 Jan 2005 17:10:22 +0000 (17:10 +0000)
Original commit message from CVS:
nego if not done yet

gst/ffmpegcolorspace/gstffmpegcolorspace.c

index 7957cc9..17f9ae5 100644 (file)
@@ -381,6 +381,11 @@ gst_ffmpegcsp_chain (GstPad * pad, GstData * data)
     gst_buffer_unref (inbuf);
   }
 
+  /* try negotiating here if it isn't yet */
+  if (!gst_pad_is_negotiated (space->srcpad)) {
+    gst_pad_renegotiate (space->srcpad);
+  }
+
   gst_pad_push (space->srcpad, GST_DATA (outbuf));
 }