applemedia: replace usage of deprecated gst_pad_set_caps() in vtdec
authorOle André Vadla Ravnås <oleavr@soundrop.com>
Sat, 16 Feb 2013 01:31:28 +0000 (02:31 +0100)
committerOle André Vadla Ravnås <oleavr@soundrop.com>
Sat, 16 Feb 2013 01:51:51 +0000 (02:51 +0100)
sys/applemedia/vtdec.c

index 51613a4..65fb33a 100644 (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;