summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2013-09-18 18:21:54 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-09-18 22:39:25 +0200
commite21d3d214a0de806f40f5f04b9537a2bc6dfcf27 (patch)
treeb76b4f1b8e8df08c3d400be6cdfdc6f34f1440ab
parentd6187c00a680cb992e028a781d1a6599d133cf6f (diff)
playbin: No need to set the GstContext on the sink before activating it
This is all handled by the GstBin code now.
-rw-r--r--gst/playback/gstplaybin2.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c
index 2dfa76f6e..51ee43c73 100644
--- a/gst/playback/gstplaybin2.c
+++ b/gst/playback/gstplaybin2.c
@@ -4096,7 +4096,6 @@ activate_sink (GstPlayBin * playbin, GstElement * sink, gboolean * activated)
GstBus *bus = NULL;
GstStateChangeReturn sret;
gboolean ret = FALSE;
- GstContext *context;
if (activated)
*activated = FALSE;
@@ -4109,13 +4108,6 @@ activate_sink (GstPlayBin * playbin, GstElement * sink, gboolean * activated)
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)) {
bus = gst_bus_new ();
gst_bus_set_sync_handler (bus,