diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-02-15 12:57:55 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-02-15 13:05:14 +0000 |
commit | d464c94cb339fa8b65e22241e24d253de9b36803 (patch) | |
tree | 986682a0117b038b3bb681b8a5050a600b8248a6 | |
parent | e991cb0c15c13ed639898cc9fdb81247bd4ee605 (diff) |
cogmse: fix printf format and a few ref leaks
-rw-r--r-- | ext/cog/gstcogmse.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/cog/gstcogmse.c b/ext/cog/gstcogmse.c index b66216823..a7d5c9a4b 100644 --- a/ext/cog/gstcogmse.c +++ b/ext/cog/gstcogmse.c @@ -327,6 +327,7 @@ gst_mse_chain_ref (GstPad * pad, GstBuffer * buffer) g_cond_wait (fs->cond, fs->lock); if (fs->cancel) { g_mutex_unlock (fs->lock); + gst_object_unref (fs); return GST_FLOW_WRONG_STATE; } } @@ -358,6 +359,7 @@ gst_mse_chain_test (GstPad * pad, GstBuffer * buffer) g_cond_wait (fs->cond, fs->lock); if (fs->cancel) { g_mutex_unlock (fs->lock); + gst_object_unref (fs); return GST_FLOW_WRONG_STATE; } } @@ -419,7 +421,8 @@ gst_mse_sink_event (GstPad * pad, GstEvent * event) gst_event_parse_new_segment_full (event, &update, &rate, &applied_rate, &format, &start, &stop, &position); - GST_DEBUG ("new_segment %d %g %g %d %lld %lld %lld", + GST_DEBUG ("new_segment %d %g %g %d %" G_GINT64_FORMAT + " %" G_GINT64_FORMAT " %" G_GINT64_FORMAT, update, rate, applied_rate, format, start, stop, position); } @@ -435,6 +438,7 @@ gst_mse_sink_event (GstPad * pad, GstEvent * event) } gst_pad_push_event (fs->srcpad, event); + gst_object_unref (fs); return TRUE; } |