From e803e9fbda506f88cb4688c6ff7224877cfad2b4 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 15 Jul 2014 01:55:45 +0530 Subject: encode: Don't leak sinkpad, remove outdated comment --- src/encode.c | 1 + src/main.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encode.c b/src/encode.c index 5e33980..915cd00 100644 --- a/src/encode.c +++ b/src/encode.c @@ -202,6 +202,7 @@ stp_encode_from_msg (TranscodeServerCtx *ctx) gst_object_unref (template); gst_object_unref (srcpad); + gst_object_unref (sinkpad); g_free (filename); g_free (tmp); #endif diff --git a/src/main.c b/src/main.c index fe9d44a..b0a102c 100644 --- a/src/main.c +++ b/src/main.c @@ -315,7 +315,6 @@ GET: /* Send the WebM stream header through the src pad first */ caps = gst_pad_get_current_caps (srcpad); - /* TODO: cache keyframes */ buffer = stp_get_streamheader_from_caps (caps); if (!buffer) { g_critical ("Unable to get streamheader from caps"); -- cgit v0.11.2-2-gd1dd