Commit d18a578b authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

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

parent b0f43f43
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment