mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
nuvdemux: check directly for valid buffer
... rather than doing so indirectly in (incomplete) semantic way.
This commit is contained in:
parent
b5c5fb58a3
commit
ae02c7820b
1 changed files with 2 additions and 2 deletions
|
@ -488,7 +488,7 @@ gst_nuv_demux_stream_data (GstNuvDemux * nuv)
|
|||
switch (h->i_type) {
|
||||
case 'V':
|
||||
{
|
||||
if (h->i_length == 0)
|
||||
if (!buf)
|
||||
break;
|
||||
|
||||
GST_BUFFER_OFFSET (buf) = nuv->video_offset;
|
||||
|
@ -499,7 +499,7 @@ gst_nuv_demux_stream_data (GstNuvDemux * nuv)
|
|||
}
|
||||
case 'A':
|
||||
{
|
||||
if (h->i_length == 0)
|
||||
if (!buf)
|
||||
break;
|
||||
|
||||
GST_BUFFER_OFFSET (buf) = nuv->audio_offset;
|
||||
|
|
Loading…
Reference in a new issue