mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
rtsp: dispatch when initial buffer has data
When we have data in the inital buffer, dispath the read function to read it even if the socket has no data to read. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=702652
This commit is contained in:
parent
ad6c16fdfc
commit
bcc5ac5298
1 changed files with 5 additions and 0 deletions
|
@ -2941,7 +2941,12 @@ gst_rtsp_source_dispatch (GSource * source, GSourceFunc callback G_GNUC_UNUSED,
|
|||
gpointer user_data G_GNUC_UNUSED)
|
||||
{
|
||||
GstRTSPWatch *watch = (GstRTSPWatch *) source;
|
||||
GstRTSPConnection *conn = watch->conn;
|
||||
|
||||
if (conn->initial_buffer != NULL) {
|
||||
gst_rtsp_source_dispatch_read (G_POLLABLE_INPUT_STREAM (conn->input_stream),
|
||||
watch);
|
||||
}
|
||||
return watch->keep_running;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue