rtspconnection: remove extra return and fix GError leak

https://bugzilla.gnome.org/show_bug.cgi?id=687473
This commit is contained in:
Miguel Angel Cabrera Moya 2012-11-02 20:13:07 +01:00 committed by Tim-Philipp Müller
parent ff04a1b4c6
commit 4b083d608e

View file

@ -1086,7 +1086,6 @@ read_line (GstRTSPConnection * conn, guint8 * buffer, guint * idx, guint size)
/* remember the original character we read and try again next time */ /* remember the original character we read and try again next time */
if (conn->read_ahead == 0) if (conn->read_ahead == 0)
conn->read_ahead = c; conn->read_ahead = c;
return GST_RTSP_EINTR;
g_clear_error (&err); g_clear_error (&err);
return GST_RTSP_EINTR; return GST_RTSP_EINTR;
} }