qtdemux: use correct unref function

Events aren't GstObjects, but GstMiniObjects
This commit is contained in:
Thiago Santos 2013-10-23 13:38:20 -03:00
parent ae1150e85c
commit 673301ef48

View file

@ -1825,7 +1825,7 @@ gst_qtdemux_reset (GstQTDemux * qtdemux, gboolean hard)
#endif #endif
qtdemux->major_brand = 0; qtdemux->major_brand = 0;
if (qtdemux->pending_newsegment) if (qtdemux->pending_newsegment)
gst_object_unref (qtdemux->pending_newsegment); gst_event_unref (qtdemux->pending_newsegment);
qtdemux->pending_newsegment = NULL; qtdemux->pending_newsegment = NULL;
qtdemux->upstream_newsegment = TRUE; qtdemux->upstream_newsegment = TRUE;
qtdemux->upstream_seekable = FALSE; qtdemux->upstream_seekable = FALSE;