Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f7799a24
Commit
f7799a24
authored
Jun 23, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mozilla: Reflect libvlc changes: media_instance destroy_and_detach->release.
parent
be6efa20
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
44 deletions
+44
-44
mozilla/control/npolibvlc.cpp
mozilla/control/npolibvlc.cpp
+36
-36
mozilla/control/npovlc.cpp
mozilla/control/npovlc.cpp
+6
-6
mozilla/vlcshell.cpp
mozilla/vlcshell.cpp
+2
-2
No files found.
mozilla/control/npolibvlc.cpp
View file @
f7799a24
This diff is collapsed.
Click to expand it.
mozilla/control/npovlc.cpp
View file @
f7799a24
...
...
@@ -169,7 +169,7 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
if
(
p_md
)
{
libvlc_toggle_fullscreen
(
p_md
,
&
ex
);
libvlc_media_instance_
destroy_and_detach
(
p_md
);
libvlc_media_instance_
release
(
p_md
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
...
...
@@ -533,7 +533,7 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
if
(
p_md
)
{
vlc_int64_t
val
=
libvlc_media_instance_get_length
(
p_md
,
&
ex
);
libvlc_media_instance_
destroy_and_detach
(
p_md
);
libvlc_media_instance_
release
(
p_md
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
...
...
@@ -565,7 +565,7 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
if
(
p_md
)
{
float
val
=
libvlc_media_instance_get_position
(
p_md
,
&
ex
);
libvlc_media_instance_
destroy_and_detach
(
p_md
);
libvlc_media_instance_
release
(
p_md
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
...
...
@@ -597,7 +597,7 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
if
(
p_md
)
{
vlc_int64_t
val
=
libvlc_media_instance_get_time
(
p_md
,
&
ex
);
libvlc_media_instance_
destroy_and_detach
(
p_md
);
libvlc_media_instance_
release
(
p_md
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
...
...
@@ -642,7 +642,7 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
vlc_int64_t
from
=
libvlc_media_instance_get_time
(
p_md
,
&
ex
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
libvlc_media_instance_
destroy_and_detach
(
p_md
);
libvlc_media_instance_
release
(
p_md
);
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
libvlc_exception_clear
(
&
ex
);
return
INVOKERESULT_GENERIC_ERROR
;
...
...
@@ -651,7 +651,7 @@ RuntimeNPObject::InvokeResult VlcNPObject::invoke(int index, const NPVariant *ar
}
/* jump to time */
libvlc_media_instance_set_time
(
p_md
,
pos
,
&
ex
);
libvlc_media_instance_
destroy_and_detach
(
p_md
);
libvlc_media_instance_
release
(
p_md
);
if
(
libvlc_exception_raised
(
&
ex
)
)
{
NPN_SetException
(
this
,
libvlc_exception_get_message
(
&
ex
));
...
...
mozilla/vlcshell.cpp
View file @
f7799a24
...
...
@@ -188,7 +188,7 @@ int16 NPP_HandleEvent( NPP instance, void * event )
if
(
p_md
)
{
libvlc_toggle_fullscreen
(
p_md
,
NULL
);
libvlc_media_instance_
destroy_and_detach
(
p_md
);
libvlc_media_instance_
release
(
p_md
);
}
}
}
...
...
@@ -227,7 +227,7 @@ int16 NPP_HandleEvent( NPP instance, void * event )
area
.
bottom
=
npwindow
.
height
;
libvlc_video_redraw_rectangle
(
p_md
,
&
area
,
NULL
);
}
libvlc_media_instance_
destroy_and_detach
(
p_md
);
libvlc_media_instance_
release
(
p_md
);
}
}
}
...
...
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