~nik90/ubuntu/precise/vlc/keywords

« back to all changes in this revision

Viewing changes to extras/contrib/src/Patches/libdvdnav.patch

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2012-02-13 01:34:02 UTC
  • mfrom: (1.1.44)
  • Revision ID: package-import@ubuntu.com-20120213013402-7utx6r7s9dg3r0pf
Tags: 2.0.0~unix-0ubuntu1
* 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:
1
 
Index: src/vm/vm.c
2
 
===================================================================
3
 
--- src/vm/vm.c (revision 1199)
4
 
+++ src/vm/vm.c (working copy)
5
 
@@ -172,12 +172,11 @@
6
 
     fd = open(device, O_RDONLY);
7
 
     if (fd > 0) {
8
 
       off = lseek( fd, 32 * (off_t) DVD_VIDEO_LB_LEN, SEEK_SET );
9
 
-      if( off == ( 32 * (off_t) DVD_VIDEO_LB_LEN ) ) {
10
 
+      if (off == 16) {
11
 
         off = read( fd, data, DVD_VIDEO_LB_LEN );
12
 
-        close(fd);
13
 
         if (off == ( (off_t) DVD_VIDEO_LB_LEN )) {
14
 
           fprintf(MSG_OUT, "libdvdnav: DVD Title: ");
15
 
-          for(i=25; i < 73; i++ ) {
16
 
+          for(i=40; i < 73; i++ ) {
17
 
             if((data[i] == 0)) break;
18
 
             if((data[i] > 32) && (data[i] < 127)) {
19
 
               fprintf(MSG_OUT, "%c", data[i]);
20
 
@@ -185,10 +184,12 @@
21
 
               fprintf(MSG_OUT, " ");
22
 
             }
23
 
           }
24
 
-          strncpy(name, (char*) &data[25], 48);
25
 
-          name[48] = 0;
26
 
+          strncpy(name, (char*) &data[40], 32);
27
 
+          i=31;
28
 
+          while( (i>=0) && (name[i] <= ' ')) --i;
29
 
+          name[i+1] = '\0';
30
 
           fprintf(MSG_OUT, "\nlibdvdnav: DVD Serial Number: ");
31
 
-          for(i=73; i < 89; i++ ) {
32
 
+          for(i=813; i < 829; i++ ) {
33
 
             if((data[i] == 0)) break;
34
 
             if((data[i] > 32) && (data[i] < 127)) {
35
 
               fprintf(MSG_OUT, "%c", data[i]);
36
 
Index: Makefile.am
37
 
===================================================================
38
 
--- Makefile.am (revision 1199)
39
 
+++ Makefile.am (working copy)
40
 
@@ -1,7 +1,7 @@
41
 
 include $(top_srcdir)/misc/Makefile.common
42
 
 
43
 
 
44
 
-SUBDIRS = src examples doc misc m4
45
 
+SUBDIRS = src misc m4
46
 
 
47
 
 EXTRA_DIST = autogen.sh \
48
 
             AUTHORS \