diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-09 14:23:01 (GMT) |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-09 14:24:15 (GMT) |
commit | 195cca6063f05bd4657773ef78d0517c1c19ac60 (patch) | |
tree | bfcf5a1d2bac353f7c25193de6f0d62ad6212ca9 /src/encode.c | |
parent | c29edc61afd14a6b59da7ba5c5c9f9fd54d1d397 (diff) | |
download | soup-transcoding-proxy-195cca6063f05bd4657773ef78d0517c1c19ac60.zip soup-transcoding-proxy-195cca6063f05bd4657773ef78d0517c1c19ac60.tar.gz |
Fix unref and frees in various places
Diffstat (limited to 'src/encode.c')
-rw-r--r-- | src/encode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/encode.c b/src/encode.c index a149219..62f0a71 100644 --- a/src/encode.c +++ b/src/encode.c @@ -23,7 +23,8 @@ on_autoplug_continue (GstElement *decodebin, else ret = TRUE, g_debug ("encodebin cannot passthrough %s\n", name); - gst_object_unref (sinkpad); + if (sinkpad) + gst_object_unref (sinkpad); g_free (name); return ret; } @@ -65,7 +66,8 @@ on_decodebin_pad_added (GstElement *decodebin, out: g_free (name); gst_caps_unref (caps); - gst_object_unref (sinkpad); + if (sinkpad) + gst_object_unref (sinkpad); return; } |