From: Luis de Bethencourt Date: Thu, 10 Dec 2015 17:41:46 +0000 (+0000) Subject: isomp4: remove unused parameters in build_*_extension X-Git-Tag: 1.10.4~705 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e731fe4af5e988be2f4ad9b1a8170a0c05525614;p=platform%2Fupstream%2Fgst-plugins-good.git isomp4: remove unused parameters in build_*_extension AtomTRAK parameter is not used by build_mov_alac_extension(), build_jp2h_extension(), or build_mov_alac_extension() and can be removed. --- diff --git a/gst/isomp4/atoms.c b/gst/isomp4/atoms.c index cde19d1..e0ec513 100644 --- a/gst/isomp4/atoms.c +++ b/gst/isomp4/atoms.c @@ -3468,7 +3468,7 @@ atom_trak_set_audio_type (AtomTRAK * trak, AtomsContext * context, } static AtomInfo * -build_pasp_extension (AtomTRAK * trak, gint par_width, gint par_height) +build_pasp_extension (gint par_width, gint par_height) { AtomData *atom_data = atom_data_new (FOURCC_pasp); guint8 *data; @@ -3531,7 +3531,7 @@ atom_trak_set_video_type (AtomTRAK * trak, AtomsContext * context, /* QT spec has a pasp extension atom in stsd that can hold PAR */ if (par_n && (context->flavor == ATOMS_TREE_FLAVOR_MOV)) { ste->extension_atoms = g_list_append (ste->extension_atoms, - build_pasp_extension (trak, par_n, par_d)); + build_pasp_extension (par_n, par_d)); } return ste; @@ -4343,7 +4343,7 @@ build_mov_aac_extension (AtomTRAK * trak, const GstBuffer * codec_data, } AtomInfo * -build_mov_alac_extension (AtomTRAK * trak, const GstBuffer * codec_data) +build_mov_alac_extension (const GstBuffer * codec_data) { AtomInfo *alac; @@ -4384,9 +4384,8 @@ build_jp2x_extension (const GstBuffer * prefix) } AtomInfo * -build_jp2h_extension (AtomTRAK * trak, gint width, gint height, - const gchar * colorspace, gint ncomp, const GValue * cmap_array, - const GValue * cdef_array) +build_jp2h_extension (gint width, gint height, const gchar * colorspace, + gint ncomp, const GValue * cmap_array, const GValue * cdef_array) { AtomData *atom_data; GstBuffer *buf; diff --git a/gst/isomp4/atoms.h b/gst/isomp4/atoms.h index 8016809..b105a4d 100644 --- a/gst/isomp4/atoms.h +++ b/gst/isomp4/atoms.h @@ -948,15 +948,14 @@ void sample_table_entry_add_ext_atom (SampleTableEntry * ste, AtomInfo * ext); AtomInfo * build_codec_data_extension (guint32 fourcc, const GstBuffer * codec_data); AtomInfo * build_mov_aac_extension (AtomTRAK * trak, const GstBuffer * codec_data, guint32 avg_bitrate, guint32 max_bitrate); -AtomInfo * build_mov_alac_extension (AtomTRAK * trak, const GstBuffer * codec_data); +AtomInfo * build_mov_alac_extension (const GstBuffer * codec_data); AtomInfo * build_esds_extension (AtomTRAK * trak, guint8 object_type, guint8 stream_type, const GstBuffer * codec_data, guint32 avg_bitrate, guint32 max_bitrate); AtomInfo * build_btrt_extension (guint32 buffer_size_db, guint32 avg_bitrate, guint32 max_bitrate); -AtomInfo * build_jp2h_extension (AtomTRAK * trak, gint width, gint height, - const gchar *colorspace, gint ncomp, - const GValue * cmap_array, +AtomInfo * build_jp2h_extension (gint width, gint height, const gchar *colorspace, + gint ncomp, const GValue * cmap_array, const GValue * cdef_array); AtomInfo * build_jp2x_extension (const GstBuffer * prefix); diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index 83b7cb7..6f1dd3f 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -3644,7 +3644,7 @@ gst_qt_mux_audio_sink_set_caps (GstQTPad * qtpad, GstCaps * caps) GST_WARNING_OBJECT (qtmux, "unexpected codec-data size, possibly broken"); } if (format == GST_QT_MUX_FORMAT_QT) - ext_atom = build_mov_alac_extension (qtpad->trak, codec_config); + ext_atom = build_mov_alac_extension (codec_config); else ext_atom = build_codec_data_extension (FOURCC_alac, codec_config); /* set some more info */ @@ -4041,8 +4041,8 @@ gst_qt_mux_video_sink_set_caps (GstQTPad * qtpad, GstCaps * caps) colorspace = gst_structure_get_string (structure, "colorspace"); if (colorspace && (ext_atom = - build_jp2h_extension (qtpad->trak, width, height, colorspace, ncomp, - cmap_array, cdef_array)) != NULL) { + build_jp2h_extension (width, height, colorspace, ncomp, cmap_array, + cdef_array)) != NULL) { ext_atom_list = g_list_append (ext_atom_list, ext_atom); ext_atom = build_fiel_extension (fields);