~ubuntu-branches/ubuntu/trusty/vdr-plugin-xineliboutput/trusty

« back to all changes in this revision

Viewing changes to xine_input_vdr.c

  • Committer: Package Import Robot
  • Author(s): Tobias Grimm
  • Date: 2012-06-09 21:04:39 UTC
  • mfrom: (1.2.10)
  • Revision ID: package-import@ubuntu.com-20120609210439-owpbkhtquo4rxl59
Tags: 1.0.7+cvs20120609.1902-1
* New Upstream Snapshot
* Build-depend on vdr-dev (>= 1.7.28)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * See the main source file 'xineliboutput.c' for copyright information and
5
5
 * how to reach the author.
6
6
 *
7
 
 * $Id: xine_input_vdr.c,v 1.361 2012/03/27 12:02:50 phintuka Exp $
 
7
 * $Id: xine_input_vdr.c,v 1.362 2012/05/11 07:37:27 phintuka Exp $
8
8
 *
9
9
 */
10
10
 
136
136
#  include <linux/unistd.h> /* syscall(__NR_gettid) */
137
137
#endif
138
138
 
139
 
static const char module_revision[] = "$Id: xine_input_vdr.c,v 1.361 2012/03/27 12:02:50 phintuka Exp $";
 
139
static const char module_revision[] = "$Id: xine_input_vdr.c,v 1.362 2012/05/11 07:37:27 phintuka Exp $";
140
140
static const char log_module_input_vdr[] = "[input_vdr] ";
141
141
#define LOG_MODULENAME log_module_input_vdr
142
142
#define SysLogLevel    iSysLogLevel
582
582
    this->scr_tuning = SCR_TUNING_PAUSED;  /* marked as paused */
583
583
 
584
584
    this->scr->set_speed_tuning(this->scr, 1.0);
585
 
    this->scr->set_buffering(this->scr, 1);
 
585
 
 
586
    if (_x_get_fine_speed(this->stream) != XINE_SPEED_PAUSE) {
 
587
      _x_set_fine_speed(this->stream, XINE_SPEED_PAUSE);
 
588
    }
586
589
 
587
590
    this->I_frames = this->P_frames = this->B_frames = 0;
588
591
  }
600
603
    this->scr_tuning = SCR_TUNING_OFF; /* marked as normal */
601
604
 
602
605
    this->scr->set_speed_tuning(this->scr, 1.0);
603
 
    this->scr->set_buffering(this->scr, 0);
604
 
 
605
 
    //this->scr->scr.set_fine_speed(&this->scr->scr, XINE_FINE_SPEED_NORMAL);
 
606
 
 
607
    if (_x_get_fine_speed(this->stream) != XINE_FINE_SPEED_NORMAL) {
 
608
      if (!this->is_paused)
 
609
        _x_set_fine_speed(this->stream, XINE_FINE_SPEED_NORMAL);
 
610
      else
 
611
        LOGDBG("reset_scr_tuning: playback is paused");
 
612
    }
 
613
 
 
614
    this->scr->scr.set_fine_speed(&this->scr->scr, XINE_FINE_SPEED_NORMAL);
606
615
  }
607
616
}
608
617
 
1665
1674
  else
1666
1675
    speed = XINE_FINE_SPEED_NORMAL * (-speed);
1667
1676
 
1668
 
  if (_x_get_fine_speed(this->stream) != speed) {
 
1677
  if (this->scr_tuning != SCR_TUNING_PAUSED &&
 
1678
      _x_get_fine_speed(this->stream) != speed) {
1669
1679
    _x_set_fine_speed (this->stream, speed);
1670
1680
  }
1671
1681