qtdemux: Remove variable assignments never read

As detected by clang/scan-build
This commit is contained in:
Edward Hervey 2014-12-10 15:08:40 +01:00
parent 7828f73516
commit 799609583e

View file

@ -3589,10 +3589,8 @@ gst_qtdemux_activate_segment (GstQTDemux * qtdemux, QtDemuxStream * stream,
time = offset; time = offset;
} else { } else {
if (segment->media_start >= qtdemux->segment.start) { if (segment->media_start >= qtdemux->segment.start) {
start = segment->media_start;
time = segment->time; time = segment->time;
} else { } else {
start = qtdemux->segment.start;
time = segment->time + (qtdemux->segment.start - segment->media_start); time = segment->time + (qtdemux->segment.start - segment->media_start);
} }
@ -3639,7 +3637,6 @@ gst_qtdemux_activate_segment (GstQTDemux * qtdemux, QtDemuxStream * stream,
* tfra entries tells us which trun/sample the key unit is in, but we don't * tfra entries tells us which trun/sample the key unit is in, but we don't
* make use of this additional information at the moment) */ * make use of this additional information at the moment) */
if (qtdemux->fragmented) { if (qtdemux->fragmented) {
index = 0;
stream->to_sample = G_MAXUINT32; stream->to_sample = G_MAXUINT32;
return TRUE; return TRUE;
} }
@ -9007,8 +9004,6 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
stream->sampled = TRUE; stream->sampled = TRUE;
stream->sparse = TRUE; stream->sparse = TRUE;
offset = 16;
stream->caps = stream->caps =
qtdemux_sub_caps (qtdemux, stream, fourcc, stsd_data, &codec); qtdemux_sub_caps (qtdemux, stream, fourcc, stsd_data, &codec);
if (codec) { if (codec) {
@ -11624,8 +11619,6 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
"layout", G_TYPE_STRING, (flags & FLAG_IS_NON_INTERLEAVED) ? "layout", G_TYPE_STRING, (flags & FLAG_IS_NON_INTERLEAVED) ?
"non-interleaved" : "interleaved", NULL); "non-interleaved" : "interleaved", NULL);
} else { } else {
if (depth == 0)
depth = 32;
if (width == 0) if (width == 0)
width = 32; width = 32;
if (width == 64) { if (width == 64) {