mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
rtpvorbisdepay: remove dead code
payload_buffer hasn't been assigned a value before the jumps to switch_failed or packet_short. So the value must be NULL. No need to unmap and unref. CID #1316476
This commit is contained in:
parent
6a16be75bf
commit
4b7e377d25
1 changed files with 0 additions and 8 deletions
|
@ -612,20 +612,12 @@ switch_failed:
|
|||
{
|
||||
GST_ELEMENT_WARNING (rtpvorbisdepay, STREAM, DECODE,
|
||||
(NULL), ("Could not switch codebooks"));
|
||||
if (payload_buffer) {
|
||||
gst_buffer_unmap (payload_buffer, &map);
|
||||
gst_buffer_unref (payload_buffer);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
packet_short:
|
||||
{
|
||||
GST_ELEMENT_WARNING (rtpvorbisdepay, STREAM, DECODE,
|
||||
(NULL), ("Packet was too short (%d < 4)", payload_len));
|
||||
if (payload_buffer) {
|
||||
gst_buffer_unmap (payload_buffer, &map);
|
||||
gst_buffer_unref (payload_buffer);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
ignore_reserved:
|
||||
|
|
Loading…
Reference in a new issue