mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 21:51:09 +00:00
media: small cleanup
This commit is contained in:
parent
d728d59a00
commit
ec0718d7c9
1 changed files with 3 additions and 3 deletions
|
@ -1232,17 +1232,17 @@ default_handle_message (GstRTSPMedia * media, GstMessage * message)
|
||||||
case GST_MESSAGE_STREAM_STATUS:
|
case GST_MESSAGE_STREAM_STATUS:
|
||||||
break;
|
break;
|
||||||
case GST_MESSAGE_ASYNC_DONE:
|
case GST_MESSAGE_ASYNC_DONE:
|
||||||
if (!priv->adding) {
|
if (priv->adding) {
|
||||||
/* when we are dynamically adding pads, the addition of the udpsrc will
|
/* when we are dynamically adding pads, the addition of the udpsrc will
|
||||||
* temporarily produce ASYNC_DONE messages. We have to ignore them and
|
* temporarily produce ASYNC_DONE messages. We have to ignore them and
|
||||||
* wait for the final ASYNC_DONE after everything prerolled */
|
* wait for the final ASYNC_DONE after everything prerolled */
|
||||||
|
GST_INFO ("%p: ignoring ASYNC_DONE", media);
|
||||||
|
} else {
|
||||||
GST_INFO ("%p: got ASYNC_DONE", media);
|
GST_INFO ("%p: got ASYNC_DONE", media);
|
||||||
collect_media_stats (media);
|
collect_media_stats (media);
|
||||||
|
|
||||||
if (priv->status == GST_RTSP_MEDIA_STATUS_PREPARING)
|
if (priv->status == GST_RTSP_MEDIA_STATUS_PREPARING)
|
||||||
gst_rtsp_media_set_status (media, GST_RTSP_MEDIA_STATUS_PREPARED);
|
gst_rtsp_media_set_status (media, GST_RTSP_MEDIA_STATUS_PREPARED);
|
||||||
} else {
|
|
||||||
GST_INFO ("%p: ignoring ASYNC_DONE", media);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GST_MESSAGE_EOS:
|
case GST_MESSAGE_EOS:
|
||||||
|
|
Loading…
Reference in a new issue