applemedia: replace usage of deprecated gst_pad_set_caps() in vtdec

This commit is contained in:
Ole André Vadla Ravnås 2013-02-16 02:31:28 +01:00
parent af6df7292c
commit bace18bacc

View file

@ -303,7 +303,7 @@ gst_vtdec_negotiate_downstream (GstVTDec * self)
return TRUE;
caps = gst_video_info_to_caps (&self->vinfo);
result = gst_pad_set_caps (self->srcpad, caps);
result = gst_pad_push_event (self->srcpad, gst_event_new_caps (caps));
gst_caps_unref (caps);
return result;