mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
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:
parent
853128e1c7
commit
36df0dd8be
1 changed files with 2 additions and 1 deletions
|
@ -2017,7 +2017,8 @@ gst_rtsp_media_set_state (GstRTSPMedia * media, GstState state,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* remember where we are */
|
/* 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);
|
collect_media_stats (media);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue