[aravis] gst-plugins: remove unneeded object type check



commit 8ec917c1ea014fc9060d0fda10d4981c6022968a
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Tue Apr 22 21:53:43 2014 +0200

    gst-plugins: remove unneeded object type check
    
    At this point, the base class should already have checked the object type.

 gst-0.10/gstaravis.c |    2 --
 gst/gstaravis.c      |    2 --
 2 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gst-0.10/gstaravis.c b/gst-0.10/gstaravis.c
index e082654..6fd5f35 100644
--- a/gst-0.10/gstaravis.c
+++ b/gst-0.10/gstaravis.c
@@ -421,8 +421,6 @@ gst_aravis_fixate_caps (GstPad * pad, GstCaps * caps)
        gint height;
        double frame_rate;
 
-       g_return_if_fail (GST_IS_ARAVIS (gst_aravis));
-
        arv_camera_get_region (gst_aravis->camera, NULL, NULL, &width, &height);
        frame_rate = arv_camera_get_frame_rate (gst_aravis->camera);
 
diff --git a/gst/gstaravis.c b/gst/gstaravis.c
index a8374e1..abc1e81 100644
--- a/gst/gstaravis.c
+++ b/gst/gstaravis.c
@@ -413,8 +413,6 @@ gst_aravis_fixate_caps (GstBaseSrc * bsrc, GstCaps * caps)
        gint height;
        double frame_rate;
 
-       g_return_if_fail (GST_IS_ARAVIS (gst_aravis));
-
        arv_camera_get_region (gst_aravis->camera, NULL, NULL, &width, &height);
        frame_rate = arv_camera_get_frame_rate (gst_aravis->camera);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]