Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
f6f321dc
Commit
f6f321dc
authored
Feb 04, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIx mozilla plugin compilation
parent
1f716cb7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
projects/mozilla/control/npolibvlc.cpp
projects/mozilla/control/npolibvlc.cpp
+4
-4
projects/mozilla/vlcplugin.cpp
projects/mozilla/vlcplugin.cpp
+7
-8
projects/mozilla/vlcplugin.h
projects/mozilla/vlcplugin.h
+1
-1
No files found.
projects/mozilla/control/npolibvlc.cpp
View file @
f6f321dc
...
...
@@ -708,8 +708,8 @@ LibvlcPlaylistItemsNPObject::invoke(int index, const NPVariant *args,
case
ID_playlistitems_remove
:
if
(
(
argCount
==
1
)
&&
isNumberValue
(
args
[
0
])
)
{
p_plugin
->
playlist_delete_item
(
numberValue
(
args
[
0
]),
&
ex
);
RETURN_ON_EXCEPTION
(
this
,
ex
)
;
if
(
!
p_plugin
->
playlist_delete_item
(
numberValue
(
args
[
0
]))
)
return
INVOKERESULT_GENERIC_ERROR
;
VOID_TO_NPVARIANT
(
result
);
return
INVOKERESULT_NO_ERROR
;
}
...
...
@@ -971,8 +971,8 @@ LibvlcPlaylistNPObject::invoke(int index, const NPVariant *args,
case
ID_playlist_removeitem
:
/* deprecated */
if
(
(
argCount
==
1
)
&&
isNumberValue
(
args
[
0
])
)
{
p_plugin
->
playlist_delete_item
(
numberValue
(
args
[
0
]),
&
ex
);
RETURN_ON_EXCEPTION
(
this
,
ex
)
;
if
(
!
p_plugin
->
playlist_delete_item
(
numberValue
(
args
[
0
]))
)
return
INVOKERESULT_GENERIC_ERROR
;
VOID_TO_NPVARIANT
(
result
);
return
INVOKERESULT_NO_ERROR
;
}
...
...
projects/mozilla/vlcplugin.cpp
View file @
f6f321dc
...
...
@@ -457,8 +457,7 @@ int VlcPlugin::playlist_add( const char *mrl, libvlc_exception_t *ex )
return
-
1
;
libvlc_media_list_lock
(
libvlc_media_list
);
libvlc_media_list_add_media
(
libvlc_media_list
,
p_m
,
ex
);
if
(
!
libvlc_exception_raised
(
ex
)
)
if
(
!
libvlc_media_list_add_media
(
libvlc_media_list
,
p_m
)
)
item
=
libvlc_media_list_count
(
libvlc_media_list
)
-
1
;
libvlc_media_list_unlock
(
libvlc_media_list
);
...
...
@@ -479,8 +478,7 @@ int VlcPlugin::playlist_add_extended_untrusted( const char *mrl, const char *nam
libvlc_media_add_option_flag
(
p_m
,
optv
[
i
],
libvlc_media_option_unique
);
libvlc_media_list_lock
(
libvlc_media_list
);
libvlc_media_list_add_media
(
libvlc_media_list
,
p_m
,
ex
);
if
(
!
libvlc_exception_raised
(
ex
)
)
if
(
!
libvlc_media_list_add_media
(
libvlc_media_list
,
p_m
)
)
item
=
libvlc_media_list_count
(
libvlc_media_list
)
-
1
;
libvlc_media_list_unlock
(
libvlc_media_list
);
libvlc_media_release
(
p_m
);
...
...
@@ -501,10 +499,10 @@ bool VlcPlugin::playlist_select( int idx, libvlc_exception_t *ex )
playlist_index
=
idx
;
p_m
=
libvlc_media_list_item_at_index
(
libvlc_media_list
,
playlist_index
,
ex
);
p_m
=
libvlc_media_list_item_at_index
(
libvlc_media_list
,
playlist_index
);
libvlc_media_list_unlock
(
libvlc_media_list
);
if
(
libvlc_exception_raised
(
ex
)
)
if
(
!
p_m
)
return
false
;
if
(
libvlc_media_player
)
...
...
@@ -531,11 +529,12 @@ bad_unlock:
return
false
;
}
void
VlcPlugin
::
playlist_delete_item
(
int
idx
,
libvlc_exception_t
*
e
x
)
int
VlcPlugin
::
playlist_delete_item
(
int
id
x
)
{
libvlc_media_list_lock
(
libvlc_media_list
);
libvlc_media_list_remove_index
(
libvlc_media_list
,
idx
,
e
x
);
int
ret
=
libvlc_media_list_remove_index
(
libvlc_media_list
,
id
x
);
libvlc_media_list_unlock
(
libvlc_media_list
);
return
ret
;
}
void
VlcPlugin
::
playlist_clear
()
...
...
projects/mozilla/vlcplugin.h
View file @
f6f321dc
...
...
@@ -266,7 +266,7 @@ public:
int
playlist_add
(
const
char
*
,
libvlc_exception_t
*
);
int
playlist_add_extended_untrusted
(
const
char
*
,
const
char
*
,
int
,
const
char
**
,
libvlc_exception_t
*
);
void
playlist_delete_item
(
int
,
libvlc_exception_t
*
);
int
playlist_delete_item
(
int
);
void
playlist_clear
();
int
playlist_count
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment