mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
structure: fix for api update
This commit is contained in:
parent
161310fa23
commit
9a8a8e72c8
8 changed files with 15 additions and 15 deletions
|
@ -437,7 +437,7 @@ gst_pulsering_context_subscribe_cb (pa_context * c,
|
|||
GST_INFO_OBJECT (psink, "emitting sink-changed");
|
||||
|
||||
renego = gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM,
|
||||
gst_structure_empty_new ("pulse-sink-changed"));
|
||||
gst_structure_new_empty ("pulse-sink-changed"));
|
||||
|
||||
if (!gst_pad_push_event (GST_BASE_SINK (psink)->sinkpad, renego))
|
||||
GST_DEBUG_OBJECT (psink, "Emitted sink-changed - nobody was listening");
|
||||
|
@ -755,7 +755,7 @@ gst_pulsering_stream_event_cb (pa_stream * p, const char *name,
|
|||
psink->device = g_strdup (pa_proplist_gets (pl, "device"));
|
||||
|
||||
renego = gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM,
|
||||
gst_structure_empty_new ("pulse-format-lost"));
|
||||
gst_structure_new_empty ("pulse-format-lost"));
|
||||
|
||||
if (!gst_pad_push_event (GST_BASE_SINK (psink)->sinkpad, renego)) {
|
||||
/* Nobody handled the format change - emit an error */
|
||||
|
|
|
@ -288,7 +288,7 @@ gst_rtp_h264_pay_getcaps (GstBaseRTPPayload * payload, GstPad * pad,
|
|||
|
||||
for (i = 0; i < gst_caps_get_size (allowed_caps); i++) {
|
||||
GstStructure *s = gst_caps_get_structure (allowed_caps, i);
|
||||
GstStructure *new_s = gst_structure_empty_new ("video/x-h264");
|
||||
GstStructure *new_s = gst_structure_new_empty ("video/x-h264");
|
||||
const gchar *profile_level_id;
|
||||
|
||||
profile_level_id = gst_structure_get_string (s, "profile-level-id");
|
||||
|
|
|
@ -645,7 +645,7 @@ request_keyframe:
|
|||
rtptheoradepay->needs_keyframe = TRUE;
|
||||
gst_pad_push_event (GST_BASE_RTP_DEPAYLOAD_SINKPAD (depayload),
|
||||
gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM,
|
||||
gst_structure_empty_new ("GstForceKeyUnit")));
|
||||
gst_structure_new_empty ("GstForceKeyUnit")));
|
||||
gst_rtp_buffer_unmap (&rtp);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -672,7 +672,7 @@ gst_rtp_theora_depay_packet_lost (GstBaseRTPDepayload * depayload,
|
|||
|
||||
gst_pad_push_event (GST_BASE_RTP_DEPAYLOAD_SINKPAD (depayload),
|
||||
gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM,
|
||||
gst_structure_empty_new ("GstForceKeyUnit")));
|
||||
gst_structure_new_empty ("GstForceKeyUnit")));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -1750,7 +1750,7 @@ gst_rtp_session_getcaps_send_rtp (GstPad * pad, GstCaps * filter)
|
|||
* internal SSRC so that we don't have to patch it. Create a structure with
|
||||
* the SSRC and another one without. */
|
||||
s1 = gst_structure_new ("application/x-rtp", "ssrc", G_TYPE_UINT, ssrc, NULL);
|
||||
s2 = gst_structure_empty_new ("application/x-rtp");
|
||||
s2 = gst_structure_new_empty ("application/x-rtp");
|
||||
|
||||
result = gst_caps_new_full (s1, s2, NULL);
|
||||
|
||||
|
|
|
@ -2009,7 +2009,7 @@ rtp_session_process_sdes (RTPSession * sess, GstRTCPPacket * packet,
|
|||
if (!source)
|
||||
return;
|
||||
|
||||
sdes = gst_structure_empty_new ("application/x-rtp-source-sdes");
|
||||
sdes = gst_structure_new_empty ("application/x-rtp-source-sdes");
|
||||
|
||||
more_entries = gst_rtcp_packet_sdes_first_entry (packet);
|
||||
j = 0;
|
||||
|
|
|
@ -230,7 +230,7 @@ rtp_source_init (RTPSource * src)
|
|||
src->probation = RTP_DEFAULT_PROBATION;
|
||||
src->closing = FALSE;
|
||||
|
||||
src->sdes = gst_structure_empty_new ("application/x-rtp-source-sdes");
|
||||
src->sdes = gst_structure_new_empty ("application/x-rtp-source-sdes");
|
||||
|
||||
src->payload = -1;
|
||||
src->clock_rate = -1;
|
||||
|
|
|
@ -5423,7 +5423,7 @@ gst_rtspsrc_open_from_sdp (GstRTSPSrc * src, GstSDPMessage * sdp,
|
|||
if (src->props)
|
||||
gst_structure_remove_all_fields (src->props);
|
||||
else
|
||||
src->props = gst_structure_empty_new ("RTSPProperties");
|
||||
src->props = gst_structure_new_empty ("RTSPProperties");
|
||||
|
||||
if (src->debug)
|
||||
gst_sdp_message_dump (sdp);
|
||||
|
|
|
@ -1185,7 +1185,7 @@ gst_v4l2_object_v4l2fourcc_to_structure (guint32 fourcc)
|
|||
case V4L2_PIX_FMT_PJPG: /* Progressive-JPEG */
|
||||
#endif
|
||||
case V4L2_PIX_FMT_JPEG: /* JFIF JPEG */
|
||||
structure = gst_structure_empty_new ("image/jpeg");
|
||||
structure = gst_structure_new_empty ("image/jpeg");
|
||||
break;
|
||||
case V4L2_PIX_FMT_YYUV: /* 16 YUV 4:2:2 */
|
||||
case V4L2_PIX_FMT_HI240: /* 8 8-bit color */
|
||||
|
@ -1297,28 +1297,28 @@ gst_v4l2_object_v4l2fourcc_to_structure (guint32 fourcc)
|
|||
NULL);
|
||||
break;
|
||||
case V4L2_PIX_FMT_MPEG: /* MPEG */
|
||||
structure = gst_structure_empty_new ("video/mpegts");
|
||||
structure = gst_structure_new_empty ("video/mpegts");
|
||||
break;
|
||||
case V4L2_PIX_FMT_WNVA: /* Winnov hw compres */
|
||||
break;
|
||||
#ifdef V4L2_PIX_FMT_SBGGR8
|
||||
case V4L2_PIX_FMT_SBGGR8:
|
||||
structure = gst_structure_empty_new ("video/x-raw-bayer");
|
||||
structure = gst_structure_new_empty ("video/x-raw-bayer");
|
||||
break;
|
||||
#endif
|
||||
#ifdef V4L2_PIX_FMT_SN9C10X
|
||||
case V4L2_PIX_FMT_SN9C10X:
|
||||
structure = gst_structure_empty_new ("video/x-sonix");
|
||||
structure = gst_structure_new_empty ("video/x-sonix");
|
||||
break;
|
||||
#endif
|
||||
#ifdef V4L2_PIX_FMT_PWC1
|
||||
case V4L2_PIX_FMT_PWC1:
|
||||
structure = gst_structure_empty_new ("video/x-pwc1");
|
||||
structure = gst_structure_new_empty ("video/x-pwc1");
|
||||
break;
|
||||
#endif
|
||||
#ifdef V4L2_PIX_FMT_PWC2
|
||||
case V4L2_PIX_FMT_PWC2:
|
||||
structure = gst_structure_empty_new ("video/x-pwc2");
|
||||
structure = gst_structure_new_empty ("video/x-pwc2");
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue