Changeset 242309aa32c60673010d3fd620818310d268b5d2

Show
Ignore:
Timestamp:
13/06/08 15:12:05 (6 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1213362725 +0200
git-parent:

[f3128ac1bc6e357f774f481b437b511752f02832]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1213362725 +0200
Message:

libvlc_video: More simplification.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/control/video.c

    rf3128ac r242309a  
    527527    /* We only work on the first vout */ 
    528528    vout_thread_t *p_vout = GetVout( p_mi, p_e ); 
    529     vlc_value_t val; int i_ret; 
     529    bool opaque; int i_ret; 
    530530 
    531531    /* GetVout will raise the exception for us */ 
    532     if( !p_vout ) 
    533         return; 
    534  
    535     i_ret = var_Get( p_vout, "vbi-opaque", &val ); 
    536     if( i_ret ) 
    537         libvlc_exception_raise( p_e, 
    538                         "Unexpected error while looking up teletext value" ); 
    539  
    540     val.b_bool = !val.b_bool; 
    541     i_ret = var_Set( p_vout, "vbi-opaque", val ); 
     532    if( !p_vout ) return; 
     533 
     534    opaque = var_GetBool( p_vout, "vbi-opaque" ); 
     535    i_ret = var_SetBool( p_vout, "vbi-opaque", !opaque ); 
    542536    if( i_ret ) 
    543537        libvlc_exception_raise( p_e,