mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
rtpmanager, v4l2: fix compiler warnings after gst_caps_new_simple() change
This commit is contained in:
parent
b0f43f43d4
commit
d18a578ba4
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue