mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
playbin: No need to set the GstContext on the sink before activating it
This is all handled by the GstBin code now.
This commit is contained in:
parent
d6187c00a6
commit
e21d3d214a
1 changed files with 0 additions and 8 deletions
|
@ -4096,7 +4096,6 @@ activate_sink (GstPlayBin * playbin, GstElement * sink, gboolean * activated)
|
||||||
GstBus *bus = NULL;
|
GstBus *bus = NULL;
|
||||||
GstStateChangeReturn sret;
|
GstStateChangeReturn sret;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
GstContext *context;
|
|
||||||
|
|
||||||
if (activated)
|
if (activated)
|
||||||
*activated = FALSE;
|
*activated = FALSE;
|
||||||
|
@ -4109,13 +4108,6 @@ activate_sink (GstPlayBin * playbin, GstElement * sink, gboolean * activated)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Proxy the playbin context to the sink, just in case */
|
|
||||||
context = gst_element_get_context (GST_ELEMENT_CAST (playbin));
|
|
||||||
if (context) {
|
|
||||||
gst_element_set_context (sink, context);
|
|
||||||
gst_context_unref (context);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!GST_OBJECT_PARENT (sink)) {
|
if (!GST_OBJECT_PARENT (sink)) {
|
||||||
bus = gst_bus_new ();
|
bus = gst_bus_new ();
|
||||||
gst_bus_set_sync_handler (bus,
|
gst_bus_set_sync_handler (bus,
|
||||||
|
|
Loading…
Reference in a new issue