qtdemux: Don't crash in debug output if stream==NULL

That case is correctly handled below but not in the debug output.

https://bugzilla.gnome.org/show_bug.cgi?id=781270
This commit is contained in:
Sebastian Dröge 2017-04-27 12:56:27 +03:00
parent a593e4966e
commit 875fc630d5

View file

@ -3933,7 +3933,8 @@ qtdemux_parse_moof (GstQTDemux * qtdemux, const guint8 * buffer, guint length,
GST_DEBUG_OBJECT (qtdemux, "decode time %" G_GINT64_FORMAT
" (%" GST_TIME_FORMAT ")", decode_time,
GST_TIME_ARGS (QTSTREAMTIME_TO_GSTTIME (stream, decode_time)));
GST_TIME_ARGS (stream ? QTSTREAMTIME_TO_GSTTIME (stream,
decode_time) : GST_CLOCK_TIME_NONE));
/* Discard the fragment buffer timestamp info to avoid using it.
* Rely on tfdt instead as it is more accurate than the timestamp