rtsp-media: don't collect media stats when going to NULL

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=678015
This commit is contained in:
David Svensson Fors 2012-06-13 11:43:17 +02:00 committed by Wim Taymans
parent 853128e1c7
commit 36df0dd8be

View file

@ -2017,7 +2017,8 @@ gst_rtsp_media_set_state (GstRTSPMedia * media, GstState state,
}
/* remember where we are */
if (state == GST_STATE_PAUSED || old_active != media->active)
if (state != GST_STATE_NULL && (state == GST_STATE_PAUSED ||
old_active != media->active))
collect_media_stats (media);
return TRUE;