Commit a0b651bf authored by Wim Taymans's avatar Wim Taymans Committed by Wim Taymans
Browse files

rtspsrc: avoid stopping NULL tasks

Check the task for NULL, it could be paused and set to NULL before.
parent d14685eb
......@@ -3425,7 +3425,10 @@ pause:
GST_DEBUG_OBJECT (src, "pausing task, reason %s", reason);
src->running = FALSE;
if (src->task) {
/* can be NULL when we stopped and unreffed already */
gst_task_pause (src->task);
if (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED) {
/* perform EOS logic */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment