rtpmanager, v4l2: fix compiler warnings after gst_caps_new_simple() change

This commit is contained in:
Tim-Philipp Müller 2011-10-28 09:05:27 +01:00
parent b0f43f43d4
commit d18a578ba4
2 changed files with 3 additions and 3 deletions

View file

@ -1102,7 +1102,7 @@ gst_rtp_session_send_rtcp (RTPSession * sess, RTPSource * src,
/* set rtcp caps on output pad */
if (!(caps = gst_pad_get_current_caps (rtcp_src))) {
caps = gst_caps_new_simple ("application/x-rtcp", NULL);
caps = gst_caps_new_empty_simple ("application/x-rtcp");
gst_pad_set_caps (rtcp_src, caps);
}
gst_caps_unref (caps);
@ -1159,7 +1159,7 @@ gst_rtp_session_sync_rtcp (RTPSession * sess, RTPSource * src,
/* set rtcp caps on output pad */
if (!(caps = gst_pad_get_current_caps (sync_src))) {
caps = gst_caps_new_simple ("application/x-rtcp", NULL);
caps = gst_caps_new_empty_simple ("application/x-rtcp");
gst_pad_set_caps (sync_src, caps);
}
gst_caps_unref (caps);

View file

@ -1791,7 +1791,7 @@ gst_v4l2_object_probe_caps_for_format (GstV4l2Object * v4l2object,
guint32 w, h;
if (pixelformat == GST_MAKE_FOURCC ('M', 'P', 'E', 'G'))
return gst_caps_new_simple ("video/mpegts", NULL);
return gst_caps_new_empty_simple ("video/mpegts");
memset (&size, 0, sizeof (struct v4l2_frmsizeenum));
size.index = 0;