~ubuntu-branches/ubuntu/utopic/vlc/utopic

« back to all changes in this revision

Viewing changes to modules/demux/mkv/matroska_segment.cpp

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2012-02-18 01:29:48 UTC
  • mfrom: (1.1.45) (3.5.32 sid)
  • Revision ID: package-import@ubuntu.com-20120218012948-tvq9nhnfi98kra44
Tags: 2.0.0-1
* New upstream release (Closes: #499381, #573064, #624027, LP: #455825,
  #573775, #695882, #705151, #708448, #738381, #743581, #747757, #817924,
  #931083).
* Remove dropped mozilla-plugin-vlc, vlc-plugin-ggi, and vlc-plugin-svgalib.
  The Mozilla browser plug-in is now provided by a separate source tarball.
* Add new plugins to and remove dropped plugins from vlc-nox.
* Add new and remove dropped build dependencies:
  + libbluray-dev (for Blu-ray support)
  + libresid-builder-dev
  + libsamplerate0-dev
  + libsidplay2-dev
  + lbspeexdsp-dev
  + libxcb-composite0-dev
  - libgtk2.0-dev
  - xulrunner-dev
* vlc-plugin-fluidsynth depends on fluid-soundfont-gm or
  musescore-soundfont-gm for having a sound font for playing MIDI files.
* Drop all patches (they were either backported or accepted by upstream).
* Update symbols for libvlc5.
* Install plugins.dat instead of running vlc-cache-gen in postinst.
* Update minimum version of build dependencies.
* Change Build-Dependency from libupnp3-dev to unversioned libupnp-dev.
  (Closes: #656831)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * mkv.cpp : matroska demuxer
3
3
 *****************************************************************************
4
4
 * Copyright (C) 2003-2010 the VideoLAN team
5
 
 * $Id: 17e659bad21c63148afaa6e1cd0b8e210e61d15f $
 
5
 * $Id: c0a0d037d3ca5ea077dcac0af6e178b10290373e $
6
6
 *
7
7
 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8
8
 *          Steve Lhomme <steve.lhomme@free.fr>
725
725
        }
726
726
    }
727
727
 
 
728
#ifndef WIN32
728
729
    /* Don't try complex seek if we seek to 0 */
729
730
    if( i_date == 0 )
730
731
    {
731
732
        es_out_Control( sys.demuxer.out, ES_OUT_SET_NEXT_DISPLAY_TIME, 0 );
 
733
        es_out_Control( sys.demuxer.out, ES_OUT_SET_PCR, VLC_TS_0 );
732
734
        es.I_O().setFilePointer( i_start_pos );
733
735
 
734
736
        delete ep;
736
738
        cluster = NULL;
737
739
        sys.i_start_pts = 0;
738
740
        sys.i_pts = 0;
 
741
        sys.i_pcr = 0;
739
742
        return;       
740
743
    }
 
744
#endif
741
745
 
742
746
    if ( i_index > 0 )
743
747
    {
847
851
        if( p_last->i_date < p_min->i_date )
848
852
            p_min = p_last;
849
853
 
850
 
    sys.i_pts = p_min->i_date;
 
854
    sys.i_pcr = sys.i_pts = p_min->i_date;
 
855
    es_out_Control( sys.demuxer.out, ES_OUT_SET_PCR, VLC_TS_0 + sys.i_pcr );
851
856
    cluster = (KaxCluster *) ep->UnGet( p_min->i_seek_pos, p_min->i_cluster_pos );
852
857
 
 
858
 
853
859
    /* hack use BlockGet to get the cluster then goto the wanted block */
854
860
    if ( !cluster )
855
861
    {