]> git.sesse.net Git - vlc/commitdiff
shout output: and release the block chain if we encounter the error.
authorDerk-Jan Hartman <hartman@videolan.org>
Mon, 28 Jul 2008 13:16:00 +0000 (15:16 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 28 Jul 2008 13:18:43 +0000 (15:18 +0200)
modules/access_output/shout.c

index b00d17e0f7f020e37fabdb060a548ece9a4f9257..ad72311c0758d037dac2743e40de8f9ef2be9b56 100644 (file)
@@ -527,6 +527,7 @@ static ssize_t Write( sout_access_out_t *p_access, block_t *p_buffer )
             else
             {
                 msg_Err( p_access, "failed to reconnect to server" );
             else
             {
                 msg_Err( p_access, "failed to reconnect to server" );
+                block_ChainRelease (p_buffer);
                 return VLC_EGENERIC;
             }
 
                 return VLC_EGENERIC;
             }