diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-15 13:05:06 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-15 13:05:06 +0000 |
commit | c5ad15d8c0f2f41d0a140320cc600655359ed125 (patch) | |
tree | 262f5a7eb5aee4a3648f129093e1c60a6035587e /mplayer.c | |
parent | 9c189c49bfeb1f07753952734881218af3d2358d (diff) | |
download | mpv-c5ad15d8c0f2f41d0a140320cc600655359ed125.tar.bz2 mpv-c5ad15d8c0f2f41d0a140320cc600655359ed125.tar.xz |
dvb cleanup: call dvb_(set|step)_channel() without dereferencing stream->priv (1000l to me)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25405 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -3115,11 +3115,8 @@ if(mpctx->sh_video){ if(!mpctx->sh_video && !mpctx->sh_audio){ mp_msg(MSGT_CPLAYER,MSGL_FATAL, MSGTR_NoStreamFound); #ifdef HAS_DVBIN_SUPPORT - if((mpctx->stream->type == STREAMTYPE_DVB) && mpctx->stream->priv) + if(mpctx->stream->type == STREAMTYPE_DVB) { - dvb_priv_t *priv = (dvb_priv_t*) mpctx->stream->priv; - if(priv->is_on) - { int dir; int v = mpctx->last_dvb_step; if(v > 0) @@ -3127,9 +3124,8 @@ if(!mpctx->sh_video && !mpctx->sh_audio){ else dir = DVB_CHANNEL_LOWER; - if(dvb_step_channel(priv, dir)) + if(dvb_step_channel(mpctx->stream, dir)) mpctx->eof = mpctx->dvbin_reopen = 1; - } } #endif goto goto_next_file; // exit_player(MSGTR_Exit_error); |