summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2006-05-03 14:30:21 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2006-05-03 14:30:21 +0000
commite73a19cb48797674ecd261293c6197c8bca0d573 (patch)
tree21c4831c4406fd953826d3c3261c365380e33f48
parent1228d439e34f29b0b2c17c9a8176bcaa5473d008 (diff)
gst/qtdemux/qtdemux.c: Clean up one piece of logic slightly and remove a dead code block.
Original commit message from CVS: * gst/qtdemux/qtdemux.c: (qtdemux_parse_trak): Clean up one piece of logic slightly and remove a dead code block.
-rw-r--r--gst/qtdemux/qtdemux.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 83b49243..81cde549 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -3229,27 +3229,17 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
mp4a = qtdemux_tree_get_child_by_type (stsd, FOURCC_mp4a);
wave = NULL;
- if (mp4a)
- wave = qtdemux_tree_get_child_by_type (mp4a, FOURCC_wave);
-
esds = NULL;
- if (wave)
- esds = qtdemux_tree_get_child_by_type (wave, FOURCC_esds);
- else if (mp4a)
- esds = qtdemux_tree_get_child_by_type (mp4a, FOURCC_esds);
+ if (mp4a) {
+ wave = qtdemux_tree_get_child_by_type (mp4a, FOURCC_wave);
+ if (wave)
+ esds = qtdemux_tree_get_child_by_type (wave, FOURCC_esds);
+ if (!esds)
+ esds = qtdemux_tree_get_child_by_type (mp4a, FOURCC_esds);
+ }
if (esds) {
gst_qtdemux_handle_esds (qtdemux, stream, esds);
-#if 0
- GstBuffer *buffer;
- int len = QTDEMUX_GUINT32_GET (esds->data);
-
- buffer = gst_buffer_new_and_alloc (len - 8);
- memcpy (GST_BUFFER_DATA (buffer), esds->data + 8, len - 8);
-
- gst_caps_set_simple (stream->caps, "codec_data",
- GST_TYPE_BUFFER, buffer, NULL);
-#endif
} else {
if (QTDEMUX_FOURCC_GET (stsd->data + 16 + 4) ==
GST_MAKE_FOURCC ('Q', 'D', 'M', '2')) {