summaryrefslogtreecommitdiffstats
path: root/ext/audiofile/gstafsink.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2005-05-05 19:23:15 +0000
committerTim-Philipp Müller <tim@centricular.net>2005-05-05 19:23:15 +0000
commit99da79cbc4632ad1d37fc3f629a5e3626cd90d2f (patch)
tree5a21a72f304f9c0899902b69127c3fa69c00ec29 /ext/audiofile/gstafsink.c
parent5ea79c29563d2fb55d21a49f4804206a66de5fb5 (diff)
downloadgst-plugins-bad-99da79cbc4632ad1d37fc3f629a5e3626cd90d2f.tar.gz
gst-plugins-bad-99da79cbc4632ad1d37fc3f629a5e3626cd90d2f.tar.bz2
gst-plugins-bad-99da79cbc4632ad1d37fc3f629a5e3626cd90d2f.zip
ex/: Even more gcc-4.0 fixes.
Original commit message from CVS: * examples/seeking/cdplayer.c: (update_scale): * examples/seeking/playbin.c: (update_scale): * examples/seeking/seek.c: (update_scale): * examples/seeking/spider_seek.c: (update_scale): * ext/aalib/gstaasink.c: (gst_aasink_scale), (gst_aasink_chain): * ext/alsa/gstalsa.c: (gst_alsa_get_format), (gst_alsa_get_caps): * ext/alsa/gstalsamixer.c: (gst_alsa_mixer_get_option): * ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event), (gst_alsa_sink_mmap): * ext/alsa/gstalsasrc.c: (gst_alsa_src_mmap): * ext/audiofile/gstafsink.c: (gst_afsink_open_file): * ext/cairo/gsttextoverlay.c: (gst_textoverlay_render_text), (gst_textoverlay_loop): * ext/cairo/gsttimeoverlay.c: (gst_timeoverlay_planar411): * ext/cdparanoia/gstcdparanoia.c: (get_musicbrainz_discid): * ext/dv/gstdvdec.c: (gst_dvdec_handle_sink_event): * ext/dvdread/dvdreadsrc.c: (dvdnavsrc_make_clut_change_event): * ext/flac/gstflacdec.c: (gst_flacdec_update_metadata): * ext/flac/gstflactag.c: (gst_flac_tag_chain): * ext/gnomevfs/gstgnomevfssrc.c: (gst_gnomevfssrc_get_icy_metadata): * ext/jpeg/gstsmokedec.c: (gst_smokedec_chain): * ext/jpeg/gstsmokeenc.c: (gst_smokeenc_chain): * ext/jpeg/smokecodec.c: (find_best_size): * ext/lame/gstlame.c: (add_one_tag), (gst_lame_chain): * ext/mad/gstid3tag.c: (mad_id3_parse_latin1_string), (mad_id3_parse_comment_frame), (gst_mad_id3_to_tag_list), (gst_id3_tag_handle_event): * ext/mad/gstmad.c: (gst_mad_handle_event), (gst_mad_chain): * ext/mpeg2dec/gstmpeg2dec.c: * ext/musicbrainz/gsttrm.c: (gst_musicbrainz_sinkconnect), (gst_musicbrainz_chain): * ext/ogg/gstoggmux.c: (gst_ogg_mux_next_buffer): * ext/pango/gsttextoverlay.c: (gst_textoverlay_loop): * ext/smoothwave/gstsmoothwave.c: (gst_smoothwave_chain): * ext/spc/gstspc.c: (spc_setup): * ext/speex/gstspeexdec.c: (speex_dec_src_event), (speex_dec_event), (speex_dec_chain): * ext/speex/gstspeexenc.c: (gst_speexenc_chain): * ext/theora/theoradec.c: (theora_dec_src_query), (theora_dec_src_event), (theora_dec_event), (theora_dec_chain): * ext/theora/theoraenc.c: (theora_enc_chain): * ext/vorbis/vorbisdec.c: (vorbis_dec_src_event), (vorbis_dec_event), (vorbis_dec_chain): * ext/vorbis/vorbisenc.c: (gst_vorbisenc_chain): * ext/wavpack/unpack.c: (init_wv_bitstream), (init_wvc_bitstream), (init_wvx_bitstream): Even more gcc-4.0 fixes.
Diffstat (limited to 'ext/audiofile/gstafsink.c')
-rw-r--r--ext/audiofile/gstafsink.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/audiofile/gstafsink.c b/ext/audiofile/gstafsink.c
index 872864b2..6d004ccb 100644
--- a/ext/audiofile/gstafsink.c
+++ b/ext/audiofile/gstafsink.c
@@ -302,12 +302,15 @@ gst_afsink_open_file (GstAFSink * sink)
if (caps == NULL) {
g_critical ("gstafsink chain : Could not get caps of pad !\n");
} else {
+ gint rate = 0;
+
structure = gst_caps_get_structure (caps, 0);
gst_structure_get_int (structure, "channels", &sink->channels);
gst_structure_get_int (structure, "width", &sink->width);
- gst_structure_get_int (structure, "rate", &sink->rate);
+ gst_structure_get_int (structure, "rate", &rate);
gst_structure_get_boolean (structure, "signed", &sink->is_signed);
gst_structure_get_int (structure, "endianness", &sink->endianness_data);
+ sink->rate = rate;
}
GST_DEBUG ("channels %d, width %d, rate %d, signed %s",
sink->channels, sink->width, sink->rate, sink->is_signed ? "yes" : "no");