diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mimic/gstmimenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mimic/gstmimenc.c b/ext/mimic/gstmimenc.c index 34e5da97..55d9d096 100644 --- a/ext/mimic/gstmimenc.c +++ b/ext/mimic/gstmimenc.c @@ -223,9 +223,10 @@ gst_mimenc_setcaps (GstPad *pad, GstCaps *caps) filter->res = (width == 320) ? MIMIC_RES_HIGH : MIMIC_RES_LOW; GST_DEBUG ("Got info from caps w : %d, h : %d", filter->width, filter->height); if (!ret) { + gst_object_unref(filter); return FALSE; } - + gst_object_unref(filter); return TRUE; } |