summaryrefslogtreecommitdiffstats
path: root/ext/gconf/gstgconfvideosink.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gconf/gstgconfvideosink.c')
-rw-r--r--ext/gconf/gstgconfvideosink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gconf/gstgconfvideosink.c b/ext/gconf/gstgconfvideosink.c
index 1e7c16e6..ec04cd86 100644
--- a/ext/gconf/gstgconfvideosink.c
+++ b/ext/gconf/gstgconfvideosink.c
@@ -87,7 +87,7 @@ gst_gconf_video_sink_reset (GstGConfVideoSink * sink)
}
gst_bin_add (GST_BIN (sink), sink->kid);
- targetpad = gst_element_get_pad (sink->kid, "sink");
+ targetpad = gst_element_get_static_pad (sink->kid, "sink");
gst_ghost_pad_set_target (GST_GHOST_PAD (sink->pad), targetpad);
gst_object_unref (targetpad);
@@ -193,7 +193,7 @@ do_toggle_element (GstGConfVideoSink * sink)
/* re-attach ghostpad */
GST_DEBUG_OBJECT (sink, "Creating new ghostpad");
- targetpad = gst_element_get_pad (sink->kid, "sink");
+ targetpad = gst_element_get_static_pad (sink->kid, "sink");
gst_ghost_pad_set_target (GST_GHOST_PAD (sink->pad), targetpad);
gst_object_unref (targetpad);
GST_DEBUG_OBJECT (sink, "done changing gconf video sink");