diff options
author | Neha Arora <arora.neha@samsung.com> | 2016-11-10 05:16:00 +0000 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-11-10 13:16:23 +0200 |
commit | 166a90359470eecfcbefbb64c118ce46eb34e72b (patch) | |
tree | 4d34440c37bf56eb1057fda04913c18250be0dc2 | |
parent | 8425ea696928971333a71ebf8f76e399cf13be5c (diff) |
rtsp-media: Only signal "new-state" if the state has actually changed
https://bugzilla.gnome.org/show_bug.cgi?id=774173
-rw-r--r-- | gst/rtsp-server/rtsp-media.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 349311a..52e6757 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -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 */ |