diff options
Diffstat (limited to 'gst/autodetect/gstautovideosink.c')
-rw-r--r-- | gst/autodetect/gstautovideosink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/autodetect/gstautovideosink.c b/gst/autodetect/gstautovideosink.c index 3df340c4..91439dda 100644 --- a/gst/autodetect/gstautovideosink.c +++ b/gst/autodetect/gstautovideosink.c @@ -161,7 +161,7 @@ gst_auto_video_sink_reset (GstAutoVideoSink * sink) gst_bin_add (GST_BIN (sink), sink->kid); /* pad */ - 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); } @@ -354,7 +354,7 @@ gst_auto_video_sink_detect (GstAutoVideoSink * sink) /* attach ghost pad */ GST_DEBUG_OBJECT (sink, "Re-assigning 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 auto video sink"); |