mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
audioencoder: prevent crashing when comparing to a freshly inited GstAudioInfo
This commit is contained in:
parent
7fa7de9221
commit
b420dd54ea
1 changed files with 2 additions and 0 deletions
|
@ -933,6 +933,8 @@ audio_info_is_equal (GstAudioInfo * from, GstAudioInfo * to)
|
|||
{
|
||||
if (from == to)
|
||||
return TRUE;
|
||||
if (from->finfo == NULL || to->finfo == NULL)
|
||||
return FALSE;
|
||||
if (GST_AUDIO_INFO_FORMAT (from) != GST_AUDIO_INFO_FORMAT (to))
|
||||
return FALSE;
|
||||
if (GST_AUDIO_INFO_RATE (from) != GST_AUDIO_INFO_RATE (to))
|
||||
|
|
Loading…
Reference in a new issue