cache: don't modify argument when stream control fails
commit61fe3dcd6c87b96f02c5c0924b4124bc7a165d34
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 3 Jul 2011 09:45:29 +0000 (3 09:45 +0000)
committerUoti Urpala <uau@mplayer2.org>
Wed, 6 Jul 2011 10:01:08 +0000 (6 13:01 +0300)
tree3c7ef9df1149f7d5ba5c8ac47409dc9dce620a75
parent06d830687d5c57f7d5016ae4d0fccaa7b6780bad
cache: don't modify argument when stream control fails

When handling STREAM_CTRL calls for the cached stream, do not modify
the return parameter if the underlying stream returns an error for the
operation.

Avoids issues with some places that don't check the return
value of stream_control.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33802 b3059339-0415-0410-9bf9-f77b7e298cf2

Remove condition that is now always true.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33803 b3059339-0415-0410-9bf9-f77b7e298cf2
stream/cache2.c