mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Fixes for GST_FOURCC_FORMAT API change.
Original commit message from CVS: * ext/aalib/gstaasink.c: (gst_aasink_setcaps): * gst/avi/gstavidemux.c: (gst_avi_demux_parse_file_header), (gst_avi_demux_read_subindexes), (gst_avi_demux_parse_stream), (gst_avi_demux_parse_odml), (gst_avi_demux_stream_index), (gst_avi_demux_sync), (gst_avi_demux_stream_header), (gst_avi_demux_stream_data): * gst/matroska/matroska-demux.c: (gst_matroska_demux_video_caps): * gst/wavenc/gstwavenc.c: (write_metadata): * gst/wavparse/gstwavparse.c: (gst_wavparse_parse_adtl), (gst_wavparse_parse_file_header), (gst_wavparse_stream_headers): Fixes for GST_FOURCC_FORMAT API change.
This commit is contained in:
parent
ded2471f23
commit
c36b3310f3
6 changed files with 37 additions and 22 deletions
14
ChangeLog
14
ChangeLog
|
@ -1,3 +1,17 @@
|
|||
2005-11-21 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/aalib/gstaasink.c: (gst_aasink_setcaps):
|
||||
* gst/avi/gstavidemux.c: (gst_avi_demux_parse_file_header),
|
||||
(gst_avi_demux_read_subindexes), (gst_avi_demux_parse_stream),
|
||||
(gst_avi_demux_parse_odml), (gst_avi_demux_stream_index),
|
||||
(gst_avi_demux_sync), (gst_avi_demux_stream_header),
|
||||
(gst_avi_demux_stream_data):
|
||||
* gst/matroska/matroska-demux.c: (gst_matroska_demux_video_caps):
|
||||
* gst/wavenc/gstwavenc.c: (write_metadata):
|
||||
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_adtl),
|
||||
(gst_wavparse_parse_file_header), (gst_wavparse_stream_headers):
|
||||
Fixes for GST_FOURCC_FORMAT API change.
|
||||
|
||||
2005-11-21 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/cairo/gsttextoverlay.c: (gst_text_overlay_finalize),
|
||||
|
|
|
@ -258,7 +258,7 @@ gst_aasink_setcaps (GstBaseSink * basesink, GstCaps * caps)
|
|||
/* FIXME aasink->format is never set */
|
||||
g_print ("%d %d\n", aasink->width, aasink->height);
|
||||
|
||||
GST_DEBUG ("aasink: setting %08lx (" GST_FOURCC_FORMAT ")",
|
||||
GST_DEBUG ("aasink: setting %08lx (%" GST_FOURCC_FORMAT ")",
|
||||
aasink->format, GST_FOURCC_ARGS (aasink->format));
|
||||
|
||||
g_signal_emit (G_OBJECT (aasink), gst_aasink_signals[SIGNAL_HAVE_SIZE], 0,
|
||||
|
|
|
@ -560,7 +560,7 @@ gst_avi_demux_parse_file_header (GstElement * element, GstBuffer * buf)
|
|||
|
||||
if (doctype != GST_RIFF_RIFF_AVI) {
|
||||
GST_ELEMENT_ERROR (element, STREAM, WRONG_TYPE, (NULL),
|
||||
("File is not an AVI file: " GST_FOURCC_FORMAT,
|
||||
("File is not an AVI file: %" GST_FOURCC_FORMAT,
|
||||
GST_FOURCC_ARGS (doctype)));
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -857,7 +857,8 @@ gst_avi_demux_read_subindexes (GstAviDemux * avi,
|
|||
else if (tag != GST_MAKE_FOURCC ('i', 'x', '0' + stream->num / 10,
|
||||
'0' + stream->num % 10)) {
|
||||
GST_ERROR_OBJECT (GST_ELEMENT (avi),
|
||||
"Not an ix## chunk (" GST_FOURCC_FORMAT ")", GST_FOURCC_ARGS (tag));
|
||||
"Not an ix## chunk (%" GST_FOURCC_FORMAT ")",
|
||||
GST_FOURCC_ARGS (tag));
|
||||
gst_buffer_unref (buf);
|
||||
continue;
|
||||
}
|
||||
|
@ -910,7 +911,7 @@ gst_avi_demux_parse_stream (GstElement * element, GstBuffer * buf)
|
|||
if (!buf || !gst_riff_parse_chunk (element, buf, &offset, &tag, &sub) ||
|
||||
tag != GST_RIFF_TAG_strh) {
|
||||
GST_ERROR_OBJECT (element,
|
||||
"Failed to find strh chunk (tag: " GST_FOURCC_FORMAT ")",
|
||||
"Failed to find strh chunk (tag: %" GST_FOURCC_FORMAT ")",
|
||||
buf ? GST_BUFFER_SIZE (buf) : 0, GST_FOURCC_ARGS (tag));
|
||||
goto fail;
|
||||
} else if (!gst_riff_parse_strh (element, sub, &stream->strh))
|
||||
|
@ -920,7 +921,7 @@ gst_avi_demux_parse_stream (GstElement * element, GstBuffer * buf)
|
|||
if (!gst_riff_parse_chunk (element, buf, &offset, &tag, &sub) ||
|
||||
tag != GST_RIFF_TAG_strf) {
|
||||
GST_ERROR_OBJECT (element,
|
||||
"Failed to find strh chunk (size: %d, tag: "
|
||||
"Failed to find strh chunk (size: %d, tag: %"
|
||||
GST_FOURCC_FORMAT ")", buf ? GST_BUFFER_SIZE (buf) : 0,
|
||||
GST_FOURCC_ARGS (tag));
|
||||
goto fail;
|
||||
|
@ -942,7 +943,7 @@ gst_avi_demux_parse_stream (GstElement * element, GstBuffer * buf)
|
|||
break;
|
||||
default:
|
||||
GST_ERROR_OBJECT (element,
|
||||
"Don´t know how to handle stream type " GST_FOURCC_FORMAT,
|
||||
"Don´t know how to handle stream type %" GST_FOURCC_FORMAT,
|
||||
GST_FOURCC_ARGS (stream->strh->type));
|
||||
break;
|
||||
}
|
||||
|
@ -975,7 +976,7 @@ gst_avi_demux_parse_stream (GstElement * element, GstBuffer * buf)
|
|||
break;
|
||||
}
|
||||
GST_WARNING_OBJECT (element,
|
||||
"Unknown stream header tag " GST_FOURCC_FORMAT ", ignoring",
|
||||
"Unknown stream header tag %" GST_FOURCC_FORMAT ", ignoring",
|
||||
GST_FOURCC_ARGS (tag));
|
||||
/* fall-through */
|
||||
case GST_RIFF_TAG_JUNK:
|
||||
|
@ -1145,7 +1146,7 @@ gst_avi_demux_parse_odml (GstElement * element, GstBuffer * buf)
|
|||
|
||||
default:
|
||||
GST_WARNING_OBJECT (element,
|
||||
"Unknown tag " GST_FOURCC_FORMAT " in ODML header",
|
||||
"Unknown tag %" GST_FOURCC_FORMAT " in ODML header",
|
||||
GST_FOURCC_ARGS (tag));
|
||||
/* fall-through */
|
||||
case GST_RIFF_TAG_JUNK:
|
||||
|
@ -1313,7 +1314,7 @@ gst_avi_demux_stream_index (GstAviDemux * avi,
|
|||
return;
|
||||
else if (tag != GST_RIFF_TAG_idx1) {
|
||||
GST_ERROR_OBJECT (avi,
|
||||
"No index data after movi chunk, but " GST_FOURCC_FORMAT,
|
||||
"No index data after movi chunk, but %" GST_FOURCC_FORMAT,
|
||||
GST_FOURCC_ARGS (tag));
|
||||
gst_buffer_unref (buf);
|
||||
return;
|
||||
|
@ -1418,7 +1419,7 @@ gst_avi_demux_sync (GstAviDemux * avi, guint32 * ret_tag, gboolean prevent_eos)
|
|||
goto done;
|
||||
|
||||
default:
|
||||
GST_WARNING ("Unknown list " GST_FOURCC_FORMAT " before AVI data",
|
||||
GST_WARNING ("Unknown list %" GST_FOURCC_FORMAT " before AVI data",
|
||||
GST_FOURCC_ARGS (tag));
|
||||
/* fall-through */
|
||||
|
||||
|
@ -1796,13 +1797,13 @@ gst_avi_demux_stream_header (GstAviDemux * avi)
|
|||
return res;
|
||||
else if (tag != GST_RIFF_TAG_LIST) {
|
||||
GST_ELEMENT_ERROR (avi, STREAM, DEMUX, (NULL),
|
||||
("Invalid AVI header (no LIST at start): "
|
||||
("Invalid AVI header (no LIST at start): %"
|
||||
GST_FOURCC_FORMAT, GST_FOURCC_ARGS (tag)));
|
||||
return GST_FLOW_ERROR;
|
||||
} else if (GST_BUFFER_SIZE (buf) < 4 ||
|
||||
GST_READ_UINT32_LE (GST_BUFFER_DATA (buf)) != GST_RIFF_LIST_hdrl) {
|
||||
GST_ELEMENT_ERROR (avi, STREAM, DEMUX, (NULL),
|
||||
("Invalid AVI header (no hdrl at start): "
|
||||
("Invalid AVI header (no hdrl at start): %"
|
||||
GST_FOURCC_FORMAT, GST_FOURCC_ARGS (tag)));
|
||||
gst_buffer_unref (buf);
|
||||
return GST_FLOW_ERROR;
|
||||
|
@ -1812,7 +1813,7 @@ gst_avi_demux_stream_header (GstAviDemux * avi)
|
|||
if (!gst_riff_parse_chunk (GST_ELEMENT (avi), buf, &offset, &tag, &sub) ||
|
||||
tag != GST_RIFF_TAG_avih) {
|
||||
GST_ELEMENT_ERROR (avi, STREAM, DEMUX, (NULL),
|
||||
("Invalid AVI header (no avih at start): "
|
||||
("Invalid AVI header (no avih at start): %"
|
||||
GST_FOURCC_FORMAT, GST_FOURCC_ARGS (tag)));
|
||||
if (sub)
|
||||
gst_buffer_unref (sub);
|
||||
|
@ -1843,7 +1844,7 @@ gst_avi_demux_stream_header (GstAviDemux * avi)
|
|||
break;
|
||||
default:
|
||||
GST_WARNING_OBJECT (avi,
|
||||
"Unknown list " GST_FOURCC_FORMAT " in AVI header",
|
||||
"Unknown list %" GST_FOURCC_FORMAT " in AVI header",
|
||||
GST_FOURCC_ARGS (GST_READ_UINT32_LE (GST_BUFFER_DATA (sub))));
|
||||
/* fall-through */
|
||||
case GST_RIFF_TAG_JUNK:
|
||||
|
@ -1853,7 +1854,7 @@ gst_avi_demux_stream_header (GstAviDemux * avi)
|
|||
break;
|
||||
default:
|
||||
GST_WARNING_OBJECT (avi,
|
||||
"Unknown off %d tag " GST_FOURCC_FORMAT " in AVI header",
|
||||
"Unknown off %d tag %" GST_FOURCC_FORMAT " in AVI header",
|
||||
offset, GST_FOURCC_ARGS (tag));
|
||||
/* fall-through */
|
||||
case GST_RIFF_TAG_JUNK:
|
||||
|
@ -2172,7 +2173,7 @@ gst_avi_demux_stream_data (GstAviDemux * avi)
|
|||
|
||||
if (stream_nr < 0 || stream_nr >= avi->num_streams) {
|
||||
/* recoverable */
|
||||
GST_WARNING ("Invalid stream ID %d (" GST_FOURCC_FORMAT ")",
|
||||
GST_WARNING ("Invalid stream ID %d (%" GST_FOURCC_FORMAT ")",
|
||||
stream_nr, GST_FOURCC_ARGS (tag));
|
||||
if (!gst_riff_read_skip (riff))
|
||||
return FALSE;
|
||||
|
|
|
@ -2945,7 +2945,7 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext *
|
|||
break;
|
||||
|
||||
default:
|
||||
GST_DEBUG ("Unknown fourcc " GST_FOURCC_FORMAT,
|
||||
GST_DEBUG ("Unknown fourcc %" GST_FOURCC_FORMAT,
|
||||
GST_FOURCC_ARGS (videocontext->fourcc));
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -388,7 +388,7 @@ write_metadata (GstWavEnc * wavenc)
|
|||
gst_props_entry_get_string (entry, &text);
|
||||
len = strlen (text) + 1; /* The length in the file includes the \0 */
|
||||
|
||||
tmp = g_strdup_printf (GST_FOURCC_FORMAT "%d%s", GST_FOURCC_ARGS (id),
|
||||
tmp = g_strdup_printf ("%" GST_FOURCC_FORMAT "%d%s", GST_FOURCC_ARGS (id),
|
||||
GUINT32_TO_LE (len), text);
|
||||
g_string_append (info_str, tmp);
|
||||
g_free (tmp);
|
||||
|
|
|
@ -429,7 +429,7 @@ gst_wavparse_parse_adtl (GstWavParse * wavparse, int len)
|
|||
break;
|
||||
|
||||
default:
|
||||
g_print ("Unknown chunk: " GST_FOURCC_FORMAT "\n",
|
||||
g_print ("Unknown chunk: %" GST_FOURCC_FORMAT "\n",
|
||||
GST_FOURCC_ARGS (chunk.id));
|
||||
return;
|
||||
}
|
||||
|
@ -520,7 +520,7 @@ gst_wavparse_parse_file_header (GstElement * element, GstBuffer * buf)
|
|||
not_wav:
|
||||
{
|
||||
GST_ELEMENT_ERROR (element, STREAM, WRONG_TYPE, (NULL),
|
||||
("File is not an WAVE file: " GST_FOURCC_FORMAT,
|
||||
("File is not an WAVE file: %" GST_FOURCC_FORMAT,
|
||||
GST_FOURCC_ARGS (doctype)));
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -842,7 +842,7 @@ gst_wavparse_stream_headers (GstWavParse * wav)
|
|||
wav->dataleft = wav->datasize;
|
||||
break;
|
||||
default:
|
||||
GST_DEBUG ("Ignoring tag" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (tag));
|
||||
GST_DEBUG ("Ignoring tag %" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (tag));
|
||||
wav->offset += 8 + ((size + 1) & ~1);
|
||||
}
|
||||
gst_buffer_unref (buf);
|
||||
|
@ -865,7 +865,7 @@ gst_wavparse_stream_headers (GstWavParse * wav)
|
|||
invalid_wav:
|
||||
{
|
||||
GST_ELEMENT_ERROR (wav, STREAM, DEMUX, (NULL),
|
||||
("Invalid WAV header (no fmt at start): "
|
||||
("Invalid WAV header (no fmt at start): %"
|
||||
GST_FOURCC_FORMAT, GST_FOURCC_ARGS (tag)));
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue