Don't free rtpinfo GString when it is NULL

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=723554
This commit is contained in:
Andrey Utkin 2014-02-03 22:41:48 +02:00 committed by Wim Taymans
parent 450b9d0a14
commit 271f533098

View file

@ -337,7 +337,8 @@ not_prepared:
stream_rtpinfo_missing:
{
g_mutex_unlock (&priv->lock);
g_string_free (rtpinfo, TRUE);
if (rtpinfo)
g_string_free (rtpinfo, TRUE);
GST_ERROR_OBJECT (media, "could not get stream %d rtpinfo", i);
return NULL;
}