]> git.pld-linux.org Git - packages/vlc.git/blob - vlc-firefox-npapi-mime.patch
- release 11
[packages/vlc.git] / vlc-firefox-npapi-mime.patch
1 From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2 Subject: NPP_GetMIMEDescription should be const char*.
3 Last-Update: 2011-11-15
4
5 ... So that the definition matches with firefox's npapi.h.
6
7 Index: vlc/projects/mozilla/vlcshell.cpp
8 ===================================================================
9 --- vlc.orig/projects/mozilla/vlcshell.cpp      2011-11-15 14:51:04.298445000 -0500
10 +++ vlc/projects/mozilla/vlcshell.cpp   2011-11-15 17:52:44.416707114 -0500
11 @@ -71,7 +71,7 @@
12  /******************************************************************************
13   * UNIX-only API calls
14   *****************************************************************************/
15 -char * NPP_GetMIMEDescription( void )
16 +const char * NPP_GetMIMEDescription( void )
17  {
18      static char mimetype[] = PLUGIN_MIMETYPES;
19      return mimetype;
20 Index: vlc/projects/mozilla/vlcshell.h
21 ===================================================================
22 --- vlc.orig/projects/mozilla/vlcshell.h        2011-11-15 14:51:04.298445000 -0500
23 +++ vlc/projects/mozilla/vlcshell.h     2011-11-15 17:53:08.736706029 -0500
24 @@ -24,7 +24,7 @@
25  #ifndef __VLCSHELL_H__
26  #define __VLCSHELL_H__
27  
28 -char * NPP_GetMIMEDescription( void );
29 +const char * NPP_GetMIMEDescription( void );
30  
31  NPError NPP_Initialize( void );
32  
33 Index: vlc/projects/mozilla/support/npunix.cpp
34 ===================================================================
35 --- vlc.orig/projects/mozilla/support/npunix.cpp        2011-11-15 14:51:04.298445000 -0500
36 +++ vlc/projects/mozilla/support/npunix.cpp     2011-11-15 18:06:53.972669237 -0500
37 @@ -767,7 +767,7 @@
38   *  - Netscape uses the return value to identify when an object instance
39   *    of this plugin should be created.
40   */
41 -char *
42 +const char *
43  NP_GetMIMEDescription(void)
44  {
45      return NPP_GetMIMEDescription();
This page took 0.032783 seconds and 3 git commands to generate.