mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
demux: update for new task api
This commit is contained in:
parent
431bbdcbf5
commit
e8910763b4
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ gst_ffmpegdemux_init (GstFFMpegDemux * demux)
|
||||||
gst_pad_set_chain_function (demux->sinkpad,
|
gst_pad_set_chain_function (demux->sinkpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_ffmpegdemux_chain));
|
GST_DEBUG_FUNCPTR (gst_ffmpegdemux_chain));
|
||||||
/* task for driving ffmpeg in loop function */
|
/* task for driving ffmpeg in loop function */
|
||||||
demux->task = gst_task_create ((GstTaskFunction) gst_ffmpegdemux_loop, demux);
|
demux->task = gst_task_new ((GstTaskFunction) gst_ffmpegdemux_loop, demux);
|
||||||
demux->task_lock = g_new (GStaticRecMutex, 1);
|
demux->task_lock = g_new (GStaticRecMutex, 1);
|
||||||
g_static_rec_mutex_init (demux->task_lock);
|
g_static_rec_mutex_init (demux->task_lock);
|
||||||
gst_task_set_lock (demux->task, demux->task_lock);
|
gst_task_set_lock (demux->task, demux->task_lock);
|
||||||
|
|
Loading…
Reference in a new issue