mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
Commented gst_dash_demux_stream_loop
This commit is contained in:
parent
b9d6796cb5
commit
5b6bede189
1 changed files with 18 additions and 16 deletions
|
@ -863,7 +863,24 @@ needs_pad_switch (GstDashDemux * demux, GList * fragment)
|
|||
return switch_pad;
|
||||
}
|
||||
|
||||
|
||||
/* gst_dash_demux_stream_loop:
|
||||
*
|
||||
* Loop for the "stream' task that pushes fragments to the src pads.
|
||||
*
|
||||
* Startup:
|
||||
* The task is started as soon as we have received the manifest and
|
||||
* waits for the first fragment to be downloaded and pushed in the
|
||||
* queue. Once this fragment has been pushed, the task pauses itself
|
||||
* until actual playback begins.
|
||||
*
|
||||
* During playback:
|
||||
* The task pushes fragments downstream at regular intervals based on
|
||||
* the fragment duration. If it detects a queue underrun, it sends
|
||||
* a buffering event to tell the main application to pause.
|
||||
*
|
||||
* Teardown:
|
||||
* The task is stopped when we reach the end of the manifest
|
||||
*/
|
||||
static void
|
||||
gst_dash_demux_stream_loop (GstDashDemux * demux)
|
||||
{
|
||||
|
@ -872,21 +889,6 @@ gst_dash_demux_stream_loop (GstDashDemux * demux)
|
|||
GstBufferList *buffer_list;
|
||||
guint nb_adaptation_set = 0;
|
||||
GstActiveStream *stream;
|
||||
/* Loop for the source pad task.
|
||||
*
|
||||
* Startup:
|
||||
* The task is started as soon as we have received the manifest and
|
||||
* waits for the first fragment to be downloaded and pushed in the
|
||||
* queue. Once this fragment has been pushed, the task pauses itself
|
||||
* until actual playback begins.
|
||||
*
|
||||
* During playback:
|
||||
* The task pushes fragments downstream at regular intervals based on
|
||||
* the fragment duration. If it detects a queue underrun, it sends
|
||||
* a buffering event to tell the main application to pause.
|
||||
*
|
||||
* Teardown:
|
||||
* The task is stopped when we reach the end of the manifest */
|
||||
|
||||
/* Wait until the next scheduled push downstream */
|
||||
if (g_cond_timed_wait (GST_TASK_GET_COND (demux->stream_task),
|
||||
|
|
Loading…
Reference in a new issue