qtdemux: release extra event ref when replacing pending newsegment event
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 28 Aug 2012 14:28:13 +0000 (16:28 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 28 Aug 2012 14:28:29 +0000 (16:28 +0200)
gst/isomp4/qtdemux.c

index 8409123d1442cee26fee775205729233ea0c08a3..156e5f7cad09b144f5a9d470dcaea0d9ac1ecea0 100644 (file)
@@ -2445,6 +2445,8 @@ qtdemux_parse_moof (GstQTDemux * qtdemux, const guint8 * buffer, guint length,
                 0, GST_CLOCK_TIME_NONE,
                 gst_util_uint64_scale (decode_time,
                     GST_SECOND, stream->timescale)));
+        /* ref added when replaced, release the original _new one */
+        gst_event_unref (qtdemux->pending_newsegment);
       }
     }