oggdemux: Unref peer pad after use in error case

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734350
This commit is contained in:
Sebastian Rasmussen 2014-08-06 13:22:56 +02:00 committed by Sebastian Dröge
parent 8fc307fae0
commit 1da3df79cf

View file

@ -3435,6 +3435,7 @@ gst_ogg_demux_check_duration_push (GstOggDemux * ogg, GstSeekFlags flags,
} else { } else {
GST_DEBUG_OBJECT (ogg, "File byte length unknown, assuming live"); GST_DEBUG_OBJECT (ogg, "File byte length unknown, assuming live");
ogg->push_disable_seeking = TRUE; ogg->push_disable_seeking = TRUE;
gst_object_unref (peer);
return TRUE; return TRUE;
} }
res = gst_pad_query_duration (peer, GST_FORMAT_TIME, &length); res = gst_pad_query_duration (peer, GST_FORMAT_TIME, &length);