Way, way, way too many files: Remove crack comment from the 2000 era.
[platform/upstream/gst-plugins-good.git] / gst / alpha / gstalpha.c
index b052d5b..4b4ed1c 100644 (file)
@@ -293,7 +293,6 @@ gst_alpha_set_property (GObject * object, guint prop_id,
 {
   GstAlpha *alpha;
 
-  /* it's not null if we got it, but it might not be ours */
   g_return_if_fail (GST_IS_ALPHA (object));
 
   alpha = GST_ALPHA (object);
@@ -351,7 +350,6 @@ gst_alpha_get_property (GObject * object, guint prop_id, GValue * value,
 {
   GstAlpha *alpha;
 
-  /* it's not null if we got it, but it might not be ours */
   g_return_if_fail (GST_IS_ALPHA (object));
 
   alpha = GST_ALPHA (object);
@@ -497,7 +495,7 @@ gst_alpha_set_i420 (guint8 * src, guint8 * dest, gint width, gint height,
 }
 
 static void
-gst_alpha_chroma_key_ayuv (gchar * src, gchar * dest, gint width, gint height,
+gst_alpha_chroma_key_ayuv (guint8 * src, guint8 * dest, gint width, gint height,
     GstAlpha * alpha)
 {
   gint b_alpha;
@@ -608,7 +606,7 @@ gst_alpha_chroma_key_ayuv (gchar * src, gchar * dest, gint width, gint height,
 /* based on http://www.cs.utah.edu/~michael/chroma/
  */
 static void
-gst_alpha_chroma_key_i420 (gchar * src, gchar * dest, gint width, gint height,
+gst_alpha_chroma_key_i420 (guint8 * src, guint8 * dest, gint width, gint height,
     GstAlpha * alpha)
 {
   gint b_alpha;
@@ -798,13 +796,11 @@ gst_alpha_chain (GstPad * pad, GstBuffer * buffer)
 
   alpha = GST_ALPHA (GST_PAD_PARENT (pad));
 
-  GST_STREAM_LOCK (pad);
-
   new_width = alpha->in_width;
   new_height = alpha->in_height;
 
   if (new_width != alpha->out_width ||
-      new_height != alpha->out_height || !GST_RPAD_CAPS (alpha->srcpad)) {
+      new_height != alpha->out_height || !GST_PAD_CAPS (alpha->srcpad)) {
     GstCaps *newcaps;
 
     newcaps = gst_caps_copy (gst_pad_get_negotiated_caps (alpha->sinkpad));
@@ -821,7 +817,7 @@ gst_alpha_chain (GstPad * pad, GstBuffer * buffer)
   outbuf =
       gst_buffer_new_and_alloc (ROUND_UP_2 (new_width) *
       ROUND_UP_2 (new_height) * 4);
-  gst_buffer_set_caps (outbuf, GST_RPAD_CAPS (alpha->srcpad));
+  gst_buffer_set_caps (outbuf, GST_PAD_CAPS (alpha->srcpad));
   GST_BUFFER_TIMESTAMP (outbuf) = GST_BUFFER_TIMESTAMP (buffer);
   GST_BUFFER_DURATION (outbuf) = GST_BUFFER_DURATION (buffer);
 
@@ -854,8 +850,6 @@ gst_alpha_chain (GstPad * pad, GstBuffer * buffer)
 
   ret = gst_pad_push (alpha->srcpad, outbuf);
 
-  GST_STREAM_UNLOCK (pad);
-
   return ret;
 }