mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
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:
parent
43afed8752
commit
65436c8715
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue