~ubuntu-branches/ubuntu/precise/vlc/precise-proposed

« back to all changes in this revision

Viewing changes to modules/gui/qt4/input_manager.cpp

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2011-12-31 13:42:26 UTC
  • mfrom: (3.5.31 sid)
  • Revision ID: package-import@ubuntu.com-20111231134226-nwo5aheq7d03wooa
* New upstream release (Closes: #604687).
* Drop backported patches and patches that were accepted by upstream.
* Refresh remaining patches.
* Add mailcap entry for Ogg Video (Closes: #651662).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * input_manager.cpp : Manage an input and interact with its GUI elements
3
3
 ****************************************************************************
4
4
 * Copyright (C) 2006-2008 the VideoLAN team
5
 
 * $Id: 7961729f7b8e8aa954bac3615add3616df00934e $
 
5
 * $Id: a464a4e5e43771b5b1e3445c038559ed6d00a703 $
6
6
 *
7
7
 * Authors: Clément Stenac <zorglub@videolan.org>
8
8
 *          Ilkka Ollakka  <ileoo@videolan.org>
862
862
void InputManager::jumpFwd()
863
863
{
864
864
    int i_interval = var_InheritInteger( p_input, "short-jump-size" );
865
 
    if( i_interval > 0 )
 
865
    if( i_interval > 0 && hasInput() )
866
866
    {
867
867
        mtime_t val = (mtime_t)(i_interval) * 1000000L;
868
868
        var_SetTime( p_input, "time-offset", val );
872
872
void InputManager::jumpBwd()
873
873
{
874
874
    int i_interval = var_InheritInteger( p_input, "short-jump-size" );
875
 
    if( i_interval > 0 )
 
875
    if( i_interval > 0 && hasInput() )
876
876
    {
877
877
        mtime_t val = -1 *(mtime_t)(i_interval) * 1000000L;
878
878
        var_SetTime( p_input, "time-offset", val );