v4l2: Remove misleading comments
authorSeungha Yang <seungha.yang@navercorp.com>
Tue, 9 Jul 2019 10:49:57 +0000 (19:49 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Tue, 9 Jul 2019 10:51:20 +0000 (19:51 +0900)
gst_pad_template_new() does not take ownership of the caps

sys/v4l2/gstv4l2transform.c
sys/v4l2/gstv4l2videodec.c
sys/v4l2/gstv4l2videoenc.c

index e2adc63..898ee19 100644 (file)
@@ -1153,7 +1153,6 @@ gst_v4l2_transform_subclass_init (gpointer g_class, gpointer data)
 
   klass->default_device = cdata->device;
 
-  /* Note: gst_pad_template_new() take the floating ref from the caps */
   gst_element_class_add_pad_template (element_class,
       gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
           cdata->sink_caps));
index bb02f2e..85f3ee6 100644 (file)
@@ -1034,7 +1034,6 @@ gst_v4l2_video_dec_subclass_init (gpointer g_class, gpointer data)
 
   klass->default_device = cdata->device;
 
-  /* Note: gst_pad_template_new() take the floating ref from the caps */
   gst_element_class_add_pad_template (element_class,
       gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
           cdata->sink_caps));
index e0b0150..880582f 100644 (file)
@@ -1128,7 +1128,6 @@ gst_v4l2_video_enc_subclass_init (gpointer g_class, gpointer data)
   klass->default_device = cdata->device;
   klass->codec = cdata->codec;
 
-  /* Note: gst_pad_template_new() take the floating ref from the caps */
   gst_element_class_add_pad_template (element_class,
       gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
           cdata->sink_caps));