mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
element: Return an empty GstContext if none was set yet
This commit is contained in:
parent
356ef049d3
commit
e47270ee24
1 changed files with 1 additions and 1 deletions
|
@ -3082,5 +3082,5 @@ gst_element_get_context (GstElement * element)
|
||||||
context = gst_context_ref (element->context);
|
context = gst_context_ref (element->context);
|
||||||
GST_OBJECT_UNLOCK (element);
|
GST_OBJECT_UNLOCK (element);
|
||||||
|
|
||||||
return context;
|
return context ? context : gst_context_new ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue