mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
Avoid crash if initialization failed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19466 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
df3b9f3b24
commit
c940e28bfb
@ -166,6 +166,7 @@ fsdp_description_recycle (fsdp_description_t * dsc)
|
||||
|
||||
for (i = 0; i < dsc->media_announcements_count; i++)
|
||||
{
|
||||
if (!dsc->media_announcements[i]) continue;
|
||||
for (j = 0; j < dsc->media_announcements[i]->formats_count; j++)
|
||||
safe_free (dsc->media_announcements[i]->formats[j]);
|
||||
safe_free (dsc->media_announcements[i]->formats);
|
||||
|
Loading…
Reference in New Issue
Block a user