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:
Neha Arora 2016-11-10 05:16:00 +00:00 committed by Sebastian Dröge
parent 8425ea6969
commit 166a903594

View file

@ -3845,11 +3845,11 @@ gst_rtsp_media_set_state (GstRTSPMedia * media, GstState state,
media, do_state); media, do_state);
if (priv->target_state != state) { if (priv->target_state != state) {
if (do_state) if (do_state) {
media_set_pipeline_state_locked (media, state); media_set_pipeline_state_locked (media, state);
g_signal_emit (media, gst_rtsp_media_signals[SIGNAL_NEW_STATE], 0, state,
g_signal_emit (media, gst_rtsp_media_signals[SIGNAL_NEW_STATE], 0, state, NULL);
NULL); }
} }
/* remember where we are */ /* remember where we are */