diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-04-10 16:23:25 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-04-10 16:23:25 -0300 |
commit | 5a1c73a1054f31e9a3169d747b6ffd3fd50e969c (patch) | |
tree | 46fd66ab53afd295e95e4977a4657c1567a18889 /gst/camerabin2 | |
parent | 6a2e986f070ac1f47971a09d42663519b57d6644 (diff) | |
download | gstreamer-plugins-bad-5a1c73a1054f31e9a3169d747b6ffd3fd50e969c.tar.gz |
wrappercamerabinsrc: remove unused attribute and related pad probe
The variable was never set to true and can be removed along
with the probe in which it used to act
Diffstat (limited to 'gst/camerabin2')
-rw-r--r-- | gst/camerabin2/gstwrappercamerabinsrc.c | 32 | ||||
-rw-r--r-- | gst/camerabin2/gstwrappercamerabinsrc.h | 3 |
2 files changed, 0 insertions, 35 deletions
diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c index 25643f322..867b207e3 100644 --- a/gst/camerabin2/gstwrappercamerabinsrc.c +++ b/gst/camerabin2/gstwrappercamerabinsrc.c @@ -333,27 +333,6 @@ gst_wrapper_camera_bin_src_vidsrc_probe (GstPad * pad, GstPadProbeInfo * info, return ret; } -static GstPadProbeReturn -gst_wrapper_camera_src_src_event_probe (GstPad * pad, GstPadProbeInfo * info, - gpointer udata) -{ - GstPadProbeReturn ret = GST_PAD_PROBE_OK; - GstWrapperCameraBinSrc *self = udata; - GstEvent *evt = GST_EVENT (info->data); - - switch (GST_EVENT_TYPE (evt)) { - case GST_EVENT_SEGMENT: - if (self->drop_newseg) { - ret = GST_PAD_PROBE_DROP; - self->drop_newseg = FALSE; - } - break; - default: - break; - } - return ret; -} - static void gst_wrapper_camera_bin_src_caps_cb (GstPad * pad, GParamSpec * pspec, gpointer user_data) @@ -524,16 +503,6 @@ check_and_replace_src (GstWrapperCameraBinSrc * self) (GCallback) gst_wrapper_camera_bin_src_max_zoom_cb, bcamsrc); } - /* add a buffer probe to the src elemento to drop EOS from READY->NULL */ - { - GstPad *pad; - pad = gst_element_get_static_pad (self->src_vid_src, "src"); - - self->src_event_probe_id = - gst_pad_add_probe (pad, GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM, - gst_wrapper_camera_src_src_event_probe, self, NULL); - gst_object_unref (pad); - } return TRUE; } @@ -1220,7 +1189,6 @@ gst_wrapper_camera_bin_src_change_state (GstElement * element, case GST_STATE_CHANGE_PAUSED_TO_READY: self->video_renegotiate = TRUE; self->image_renegotiate = TRUE; - self->drop_newseg = FALSE; break; case GST_STATE_CHANGE_READY_TO_NULL: break; diff --git a/gst/camerabin2/gstwrappercamerabinsrc.h b/gst/camerabin2/gstwrappercamerabinsrc.h index 68be6c559..050cc86d7 100644 --- a/gst/camerabin2/gstwrappercamerabinsrc.h +++ b/gst/camerabin2/gstwrappercamerabinsrc.h @@ -91,9 +91,6 @@ struct _GstWrapperCameraBinSrc GstPad *outsel_imgpad; GstPad *outsel_vidpad; - /* For changing caps without losing timestamps */ - gboolean drop_newseg; - /* Application configurable elements */ GstElement *app_vid_src; GstElement *app_vid_filter; |