diff options
author | Thiago Santos <ts.santos@osg.sisa.samsung.com> | 2014-07-26 12:38:42 -0300 |
---|---|---|
committer | Thiago Santos <ts.santos@osg.sisa.samsung.com> | 2014-07-26 12:38:42 -0300 |
commit | 34b90db967f2604a961c2f489fc1f7cde10ddbd0 (patch) | |
tree | 729fd144e4783e9cfb9f7b63fa14b91d5cb0cb09 /gst/camerabin2 | |
parent | 2bfd106ef603f2888b634a2be0cd62a30c6a87d3 (diff) |
wrappercamerabinsrc: unref request pads
Do not forget to unref output-selector requested pads
Diffstat (limited to 'gst/camerabin2')
-rw-r--r-- | gst/camerabin2/gstwrappercamerabinsrc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c index a62627aefc..d237d279f8 100644 --- a/gst/camerabin2/gstwrappercamerabinsrc.c +++ b/gst/camerabin2/gstwrappercamerabinsrc.c @@ -80,6 +80,14 @@ gst_wrapper_camera_bin_src_dispose (GObject * object) { GstWrapperCameraBinSrc *self = GST_WRAPPER_CAMERA_BIN_SRC (object); + if (self->outsel_imgpad) { + gst_object_unref (self->outsel_imgpad); + self->outsel_imgpad = NULL; + } + if (self->outsel_vidpad) { + gst_object_unref (self->outsel_vidpad); + self->outsel_vidpad = NULL; + } if (self->app_vid_src) { gst_object_unref (self->app_vid_src); self->app_vid_src = NULL; |