mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
rtspsrc: avoid stopping NULL tasks
Check the task for NULL, it could be paused and set to NULL before.
This commit is contained in:
parent
d14685eb08
commit
a0b651bf5b
1 changed files with 4 additions and 1 deletions
|
@ -3425,7 +3425,10 @@ pause:
|
|||
|
||||
GST_DEBUG_OBJECT (src, "pausing task, reason %s", reason);
|
||||
src->running = FALSE;
|
||||
gst_task_pause (src->task);
|
||||
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) {
|
||||
if (ret == GST_FLOW_UNEXPECTED) {
|
||||
/* perform EOS logic */
|
||||
|
|
Loading…
Reference in a new issue