From: Wim Taymans Date: Thu, 27 Oct 2011 14:03:17 +0000 (+0200) Subject: fix compilation X-Git-Tag: 1.19.3~509^2~7610 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc4684f4c643e6c1a225e28c87cc5267464b4c75;p=platform%2Fupstream%2Fgstreamer.git fix compilation --- diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index e0686d1..59c608b 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -434,7 +434,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_new ("pulse-sink-changed", NULL)); + gst_structure_empty_new ("pulse-sink-changed")); if (!gst_pad_push_event (GST_BASE_SINK (psink)->sinkpad, renego)) GST_DEBUG_OBJECT (psink, "Emitted sink-changed - nobody was listening"); @@ -752,7 +752,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_new ("pulse-format-lost", NULL)); + gst_structure_empty_new ("pulse-format-lost")); if (!gst_pad_push_event (GST_BASE_SINK (psink)->sinkpad, renego)) { /* Nobody handled the format change - emit an error */ diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c index 7e08be3..d4e6ea3 100644 --- a/gst/rtp/gstrtph264pay.c +++ b/gst/rtp/gstrtph264pay.c @@ -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_new ("video/x-h264", NULL); + GstStructure *new_s = gst_structure_empty_new ("video/x-h264"); const gchar *profile_level_id; profile_level_id = gst_structure_get_string (s, "profile-level-id"); diff --git a/gst/rtp/gstrtptheoradepay.c b/gst/rtp/gstrtptheoradepay.c index 59695e9..9bcc7d7 100644 --- a/gst/rtp/gstrtptheoradepay.c +++ b/gst/rtp/gstrtptheoradepay.c @@ -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_new ("GstForceKeyUnit", NULL))); + gst_structure_empty_new ("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_new ("GstForceKeyUnit", NULL))); + gst_structure_empty_new ("GstForceKeyUnit"))); return TRUE; } diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index 1244783..8509c1f 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -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_new ("application/x-rtp", NULL); + s2 = gst_structure_empty_new ("application/x-rtp"); result = gst_caps_new_full (s1, s2, NULL); diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index 89dafb8..2c0834e 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -2009,7 +2009,7 @@ rtp_session_process_sdes (RTPSession * sess, GstRTCPPacket * packet, if (!source) return; - sdes = gst_structure_new ("application/x-rtp-source-sdes", NULL); + sdes = gst_structure_empty_new ("application/x-rtp-source-sdes"); more_entries = gst_rtcp_packet_sdes_first_entry (packet); j = 0; diff --git a/gst/rtpmanager/rtpsource.c b/gst/rtpmanager/rtpsource.c index 15ba4f8..ec27dda 100644 --- a/gst/rtpmanager/rtpsource.c +++ b/gst/rtpmanager/rtpsource.c @@ -230,7 +230,7 @@ rtp_source_init (RTPSource * src) src->probation = RTP_DEFAULT_PROBATION; src->closing = FALSE; - src->sdes = gst_structure_new ("application/x-rtp-source-sdes", NULL); + src->sdes = gst_structure_empty_new ("application/x-rtp-source-sdes"); src->payload = -1; src->clock_rate = -1; diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index 79f1b78..48a4730 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -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_new ("image/jpeg", NULL); + structure = gst_structure_empty_new ("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_new ("video/mpegts", NULL); + structure = gst_structure_empty_new ("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_new ("video/x-raw-bayer", NULL); + structure = gst_structure_empty_new ("video/x-raw-bayer"); break; #endif #ifdef V4L2_PIX_FMT_SN9C10X case V4L2_PIX_FMT_SN9C10X: - structure = gst_structure_new ("video/x-sonix", NULL); + structure = gst_structure_empty_new ("video/x-sonix"); break; #endif #ifdef V4L2_PIX_FMT_PWC1 case V4L2_PIX_FMT_PWC1: - structure = gst_structure_new ("video/x-pwc1", NULL); + structure = gst_structure_empty_new ("video/x-pwc1"); break; #endif #ifdef V4L2_PIX_FMT_PWC2 case V4L2_PIX_FMT_PWC2: - structure = gst_structure_new ("video/x-pwc2", NULL); + structure = gst_structure_empty_new ("video/x-pwc2"); break; #endif default: