asfdemux: avoid unnecessary stream lookup

We have already retrieved the stream for that stream number and
made sure it's not NULL, so no need to do it again here; neither
the number nor the streams changed since the last time.
This commit is contained in:
Tim-Philipp Müller 2012-04-12 14:45:51 +01:00 committed by Sebastian Dröge
parent 43afed8752
commit 65436c8715

View file

@ -382,8 +382,7 @@ gst_asf_demux_parse_payload (GstASFDemux * demux, AsfPacket * packet,
GST_LOG_OBJECT (demux, "payload length: %u", payload_len);
if ((stream = gst_asf_demux_get_stream (demux, stream_num))
&& payload_len) {
if (payload_len > 0) {
payload.buf = asf_packet_create_payload_buffer (packet, p_data, p_size,
payload_len);