diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2006-05-03 14:30:21 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2006-05-03 14:30:21 +0000 |
commit | c140e12dabffb80b894db7359d9f329e21391dc7 (patch) | |
tree | 46300fc7249b6f0aaec90af49b287ea4fc7b1e94 /gst/qtdemux | |
parent | 721644986bb9a5f26bc29f40933ad05ae0d712a0 (diff) | |
download | gst-plugins-bad-c140e12dabffb80b894db7359d9f329e21391dc7.tar.gz gst-plugins-bad-c140e12dabffb80b894db7359d9f329e21391dc7.tar.bz2 gst-plugins-bad-c140e12dabffb80b894db7359d9f329e21391dc7.zip |
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.
Diffstat (limited to 'gst/qtdemux')
-rw-r--r-- | gst/qtdemux/qtdemux.c | 24 |
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')) { |