mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
fixed first bunch of compiler warnings
Original commit message from CVS: fixed first bunch of compiler warnings
This commit is contained in:
parent
bf4cd8dc8b
commit
0e102b69f9
4 changed files with 3 additions and 59 deletions
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit 38267abf56a3428093cea71429dca6a24a927547
|
Subproject commit 6148068f2318e85d8e66df485342b630d8fb49ac
|
|
@ -144,10 +144,10 @@ gst_mp3parse_init (GstMPEGAudioParse *mp3parse)
|
||||||
mp3parse->sinkpad = gst_pad_new_from_template(sink_temp, "sink");
|
mp3parse->sinkpad = gst_pad_new_from_template(sink_temp, "sink");
|
||||||
gst_element_add_pad(GST_ELEMENT(mp3parse),mp3parse->sinkpad);
|
gst_element_add_pad(GST_ELEMENT(mp3parse),mp3parse->sinkpad);
|
||||||
|
|
||||||
|
gst_element_set_loop_function (GST_ELEMENT(mp3parse),gst_mp3parse_loop);
|
||||||
#if 1 /* set this to one to use the old chaining code */
|
#if 1 /* set this to one to use the old chaining code */
|
||||||
gst_pad_set_chain_function(mp3parse->sinkpad,gst_mp3parse_chain);
|
gst_pad_set_chain_function(mp3parse->sinkpad,gst_mp3parse_chain);
|
||||||
#else /* else you get the new loop-based code, which isn't complete yet */
|
gst_element_set_loop_function (GST_ELEMENT(mp3parse),NULL);
|
||||||
gst_element_set_loop_function (GST_ELEMENT(mp3parse),gst_mp3parse_loop);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mp3parse->srcpad = gst_pad_new_from_template(src_temp, "src");
|
mp3parse->srcpad = gst_pad_new_from_template(src_temp, "src");
|
||||||
|
|
|
@ -772,59 +772,6 @@ gst_mpeg_demux_parse_pes (GstMPEGParse *mpeg_parse, GstBuffer *buffer)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
_queue_discontinuous (GstPad *pad, gpointer ign)
|
|
||||||
{
|
|
||||||
/* ugh, GstBuffer cast is wrong here */
|
|
||||||
gst_pad_push (pad, (GstBuffer*) gst_event_new (GST_EVENT_DISCONTINUOUS));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
_queue_eos (GstPad *pad, gpointer ign)
|
|
||||||
{
|
|
||||||
/* ugh, GstBuffer cast is wrong here */
|
|
||||||
gst_pad_push (pad, (GstBuffer*) gst_event_new (GST_EVENT_EOS));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
_forall_pads (GstMPEGDemux *mpeg_demux, GFunc fun, gpointer user_data)
|
|
||||||
{
|
|
||||||
GstPad *pad;
|
|
||||||
gint i;
|
|
||||||
|
|
||||||
/* events should be refcnt'd XXX */
|
|
||||||
|
|
||||||
for (i=0;i<NUM_PRIVATE_1_PADS;i++)
|
|
||||||
{
|
|
||||||
pad = mpeg_demux->private_1_pad[i];
|
|
||||||
if (pad && GST_PAD_IS_CONNECTED(pad))
|
|
||||||
(*fun) (pad, user_data);
|
|
||||||
}
|
|
||||||
for (i=0;i<NUM_SUBTITLE_PADS;i++)
|
|
||||||
{
|
|
||||||
pad = mpeg_demux->subtitle_pad[i];
|
|
||||||
if (pad && GST_PAD_IS_CONNECTED(pad))
|
|
||||||
(*fun) (pad, user_data);
|
|
||||||
}
|
|
||||||
|
|
||||||
pad = mpeg_demux->private_2_pad;
|
|
||||||
if (pad && GST_PAD_IS_CONNECTED(pad))
|
|
||||||
(*fun) (pad, user_data);
|
|
||||||
|
|
||||||
for (i=0;i<NUM_VIDEO_PADS;i++)
|
|
||||||
{
|
|
||||||
pad = mpeg_demux->video_pad[i];
|
|
||||||
if (pad && GST_PAD_IS_CONNECTED(pad))
|
|
||||||
(*fun) (pad, user_data);
|
|
||||||
}
|
|
||||||
for (i=0;i<NUM_AUDIO_PADS;i++)
|
|
||||||
{
|
|
||||||
pad = mpeg_demux->audio_pad[i];
|
|
||||||
if (pad && GST_PAD_IS_CONNECTED(pad))
|
|
||||||
(*fun) (pad, user_data);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstElementStateReturn
|
static GstElementStateReturn
|
||||||
gst_mpeg_demux_change_state (GstElement *element)
|
gst_mpeg_demux_change_state (GstElement *element)
|
||||||
{
|
{
|
||||||
|
|
|
@ -75,9 +75,6 @@ static void gst_rfc2250_enc_init (GstRFC2250Enc *rfc2250_enc);
|
||||||
static GstElementStateReturn
|
static GstElementStateReturn
|
||||||
gst_rfc2250_enc_change_state (GstElement *element);
|
gst_rfc2250_enc_change_state (GstElement *element);
|
||||||
|
|
||||||
static gboolean gst_rfc2250_enc_parse_packhead (GstRFC2250Enc *rfc2250_enc, GstBuffer *buffer);
|
|
||||||
static void gst_rfc2250_enc_send_data (GstRFC2250Enc *rfc2250_enc, GstData *data);
|
|
||||||
|
|
||||||
static void gst_rfc2250_enc_loop (GstElement *element);
|
static void gst_rfc2250_enc_loop (GstElement *element);
|
||||||
|
|
||||||
static void gst_rfc2250_enc_get_property (GObject *object, guint prop_id,
|
static void gst_rfc2250_enc_get_property (GObject *object, guint prop_id,
|
||||||
|
|
Loading…
Reference in a new issue