mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
mssdemux: don't stop a task from inside the loop
Only pause the task
This commit is contained in:
parent
0239d77999
commit
b064910895
1 changed files with 8 additions and 8 deletions
|
@ -1072,13 +1072,13 @@ no_url_error:
|
||||||
GST_ELEMENT_ERROR (mssdemux, STREAM, DEMUX,
|
GST_ELEMENT_ERROR (mssdemux, STREAM, DEMUX,
|
||||||
(_("Failed to get fragment URL.")),
|
(_("Failed to get fragment URL.")),
|
||||||
("An error happened when getting fragment URL"));
|
("An error happened when getting fragment URL"));
|
||||||
gst_task_stop (stream->download_task);
|
gst_task_pause (stream->download_task);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
error:
|
error:
|
||||||
{
|
{
|
||||||
GST_WARNING_OBJECT (mssdemux, "Error while pushing fragment");
|
GST_WARNING_OBJECT (mssdemux, "Error while pushing fragment");
|
||||||
gst_task_stop (stream->download_task);
|
gst_task_pause (stream->download_task);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1117,13 +1117,13 @@ eos:
|
||||||
GST_DEBUG_PAD_NAME (stream->pad));
|
GST_DEBUG_PAD_NAME (stream->pad));
|
||||||
gst_mss_demux_stream_store_object (stream,
|
gst_mss_demux_stream_store_object (stream,
|
||||||
GST_MINI_OBJECT_CAST (gst_event_new_eos ()));
|
GST_MINI_OBJECT_CAST (gst_event_new_eos ()));
|
||||||
gst_task_stop (stream->download_task);
|
gst_task_pause (stream->download_task);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
error:
|
error:
|
||||||
{
|
{
|
||||||
GST_WARNING_OBJECT (mssdemux, "Error while pushing fragment");
|
GST_WARNING_OBJECT (mssdemux, "Error while pushing fragment");
|
||||||
gst_task_stop (stream->download_task);
|
gst_task_pause (stream->download_task);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1288,19 +1288,19 @@ gst_mss_demux_stream_loop (GstMssDemux * mssdemux)
|
||||||
eos:
|
eos:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (mssdemux, "EOS on all pads");
|
GST_DEBUG_OBJECT (mssdemux, "EOS on all pads");
|
||||||
gst_task_stop (mssdemux->stream_task);
|
gst_task_pause (mssdemux->stream_task);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
error:
|
error:
|
||||||
{
|
{
|
||||||
GST_WARNING_OBJECT (mssdemux, "Error while pushing fragment");
|
GST_WARNING_OBJECT (mssdemux, "Error while pushing fragment");
|
||||||
gst_task_stop (mssdemux->stream_task);
|
gst_task_pause (mssdemux->stream_task);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
stop:
|
stop:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (mssdemux, "Stopping streaming task");
|
GST_DEBUG_OBJECT (mssdemux, "Pausing streaming task");
|
||||||
gst_task_stop (mssdemux->stream_task);
|
gst_task_pause (mssdemux->stream_task);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue