mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
rtsp-media: Only signal "new-state" if the state has actually changed
https://bugzilla.gnome.org/show_bug.cgi?id=774173
This commit is contained in:
parent
8425ea6969
commit
166a903594
1 changed files with 4 additions and 4 deletions
|
@ -3845,11 +3845,11 @@ gst_rtsp_media_set_state (GstRTSPMedia * media, GstState state,
|
|||
media, do_state);
|
||||
|
||||
if (priv->target_state != state) {
|
||||
if (do_state)
|
||||
if (do_state) {
|
||||
media_set_pipeline_state_locked (media, state);
|
||||
|
||||
g_signal_emit (media, gst_rtsp_media_signals[SIGNAL_NEW_STATE], 0, state,
|
||||
NULL);
|
||||
g_signal_emit (media, gst_rtsp_media_signals[SIGNAL_NEW_STATE], 0, state,
|
||||
NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/* remember where we are */
|
||||
|
|
Loading…
Reference in a new issue