diff --git a/ext/smoothstreaming/gstmssmanifest.c b/ext/smoothstreaming/gstmssmanifest.c index 8d92a0ddac..5d6dfa22cf 100644 --- a/ext/smoothstreaming/gstmssmanifest.c +++ b/ext/smoothstreaming/gstmssmanifest.c @@ -346,11 +346,13 @@ gst_mss_stream_get_fragment_url (GstMssStream * stream, gchar ** url) gchar *tmp; gchar *bitrate_str; gchar *start_time_str; - GstMssStreamFragment *fragment = stream->current_fragment->data; + GstMssStreamFragment *fragment; if (stream->current_fragment == NULL) /* stream is over */ return GST_FLOW_UNEXPECTED; + fragment = stream->current_fragment->data; + bitrate_str = (gchar *) xmlGetProp (stream->current_quality->data, (xmlChar *) MSS_PROP_BITRATE);