play: Emit correct signal

SIGNAL_MEDIA_INFO_UPDATED should be emitted on media info changes,
not SIGNAL_VIDEO_DIMENSIONS_CHANGED.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2398>
This commit is contained in:
Guido Günther 2021-07-09 14:55:43 +02:00 committed by GStreamer Marge Bot
parent c22ae0700b
commit f331082b20

View file

@ -168,8 +168,7 @@ gst_play_signal_adapter_emit (GstPlaySignalAdapter * self,
GstPlayMediaInfo *media_info;
gst_structure_get (message_data, GST_PLAY_MESSAGE_DATA_MEDIA_INFO,
GST_TYPE_PLAY_MEDIA_INFO, &media_info, NULL);
g_signal_emit (self, signals[SIGNAL_VIDEO_DIMENSIONS_CHANGED], 0,
media_info);
g_signal_emit (self, signals[SIGNAL_MEDIA_INFO_UPDATED], 0, media_info);
g_object_unref (media_info);
break;
}