mpdparser: Don't crash in debug output if stream->segments is NULL

This commit is contained in:
Sebastian Dröge 2015-06-04 15:57:57 +02:00
parent 96d1331679
commit 2b207c0b65

View file

@ -3965,7 +3965,7 @@ gst_mpd_client_advance_segment (GstMpdClient * client, GstActiveStream * stream,
done:
GST_DEBUG ("Advanced to segment: %d / %d r:%d (ret: %s)",
stream->segment_index, stream->segments->len,
stream->segment_index, (stream->segments ? stream->segments->len : -1),
stream->segment_repeat_index, gst_flow_get_name (ret));
return ret;
}