subtitleoverlay: Get the target of the video sinkpad, not the target sinkpad in the video setcaps handler

This commit is contained in:
Sebastian Dröge 2011-09-19 14:02:00 +02:00
parent 27058c1bc6
commit 01d37532b6

View file

@ -1753,8 +1753,7 @@ gst_subtitle_overlay_video_sink_setcaps (GstPad * pad, GstCaps * caps)
GST_DEBUG_OBJECT (pad, "Setting caps: %" GST_PTR_FORMAT, caps);
target =
gst_ghost_pad_get_target (GST_GHOST_PAD_CAST (self->subtitle_sinkpad));
target = gst_ghost_pad_get_target (GST_GHOST_PAD_CAST (self->video_sinkpad));
GST_SUBTITLE_OVERLAY_LOCK (self);