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
7078d5da
Commit
7078d5da
authored
Nov 03, 2006
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove libvlc_set_video_drawable, libvlc_video_set_parent offers the same functionality
parent
474d6a5a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
35 deletions
+16
-35
bindings/java/src/graphics-jni.cc
bindings/java/src/graphics-jni.cc
+2
-2
bindings/java/src/video-jni.cc
bindings/java/src/video-jni.cc
+6
-12
include/vlc/libvlc.h
include/vlc/libvlc.h
+0
-8
src/control/video.c
src/control/video.c
+8
-13
No files found.
bindings/java/src/graphics-jni.cc
View file @
7078d5da
...
@@ -97,7 +97,7 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_JVLCCanvas_paint (JNIEnv *env, job
...
@@ -97,7 +97,7 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_JVLCCanvas_paint (JNIEnv *env, job
drawable
=
reinterpret_cast
<
int
>
(
dsi_win
->
hwnd
);
drawable
=
reinterpret_cast
<
int
>
(
dsi_win
->
hwnd
);
long
vlcInstance
=
getJVLCInstance
(
env
,
canvas
);
long
vlcInstance
=
getJVLCInstance
(
env
,
canvas
);
libvlc_
set_video_drawable
(
(
libvlc_instance_t
*
)
vlcInstance
,
drawable
,
exception
);
libvlc_
video_set_parent
(
(
libvlc_instance_t
*
)
vlcInstance
,
drawable
,
exception
);
#else // UNIX
#else // UNIX
/* Get the platform-specific drawing info */
/* Get the platform-specific drawing info */
...
@@ -109,7 +109,7 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_JVLCCanvas_paint (JNIEnv *env, job
...
@@ -109,7 +109,7 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_JVLCCanvas_paint (JNIEnv *env, job
drawable
=
dsi_x11
->
drawable
;
drawable
=
dsi_x11
->
drawable
;
long
vlcInstance
=
getJVLCInstance
(
env
,
canvas
);
long
vlcInstance
=
getJVLCInstance
(
env
,
canvas
);
libvlc_
set_video_drawable
(
(
libvlc_instance_t
*
)
vlcInstance
,
drawable
,
exception
);
libvlc_
video_set_parent
(
(
libvlc_instance_t
*
)
vlcInstance
,
drawable
,
exception
);
XFreeGC
(
dsi_x11
->
display
,
gc
);
XFreeGC
(
dsi_x11
->
display
,
gc
);
...
...
bindings/java/src/video-jni.cc
View file @
7078d5da
...
@@ -133,6 +133,8 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1reparent (JNIEnv *env, job
...
@@ -133,6 +133,8 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1reparent (JNIEnv *env, job
GET_INPUT_THREAD
;
GET_INPUT_THREAD
;
libvlc_drawable_t
drawable
;
JAWT
awt
;
JAWT
awt
;
JAWT_DrawingSurface
*
ds
;
JAWT_DrawingSurface
*
ds
;
JAWT_DrawingSurfaceInfo
*
dsi
;
JAWT_DrawingSurfaceInfo
*
dsi
;
...
@@ -144,8 +146,6 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1reparent (JNIEnv *env, job
...
@@ -144,8 +146,6 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1reparent (JNIEnv *env, job
#endif
#endif
jint
lock
;
jint
lock
;
vlc_value_t
value
;
/* Get the AWT */
/* Get the AWT */
awt
.
version
=
JAWT_VERSION_1_3
;
awt
.
version
=
JAWT_VERSION_1_3
;
if
(
JAWT_GetAWT
(
env
,
&
awt
)
==
JNI_FALSE
)
{
if
(
JAWT_GetAWT
(
env
,
&
awt
)
==
JNI_FALSE
)
{
...
@@ -181,15 +181,12 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1reparent (JNIEnv *env, job
...
@@ -181,15 +181,12 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1reparent (JNIEnv *env, job
#ifdef WIN32
#ifdef WIN32
/* Get the platform-specific drawing info */
/* Get the platform-specific drawing info */
dsi_win
=
(
JAWT_Win32DrawingSurfaceInfo
*
)
dsi
->
platformInfo
;
dsi_win
=
(
JAWT_Win32DrawingSurfaceInfo
*
)
dsi
->
platformInfo
;
drawable
=
reinterpret_cast
<
int
>
(
dsi_win
->
hwnd
);
libvlc_video_reparent
(
input
,
(
libvlc_drawable_t
)
dsi_win
->
hwnd
,
exception
);
libvlc_video_reparent
(
input
,
drawable
,
exception
);
CHECK_EXCEPTION_FREE
;
CHECK_EXCEPTION_FREE
;
/* Now paint */
value
.
i_int
=
reinterpret_cast
<
int
>
(
dsi_win
->
hwnd
);
VLC_VariableSet
(
1
,
"drawable"
,
value
);
#else // UNIX
#else // UNIX
/* Get the platform-specific drawing info */
/* Get the platform-specific drawing info */
...
@@ -200,14 +197,11 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1reparent (JNIEnv *env, job
...
@@ -200,14 +197,11 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1reparent (JNIEnv *env, job
XSetBackground
(
dsi_x11
->
display
,
gc
,
0
);
XSetBackground
(
dsi_x11
->
display
,
gc
,
0
);
/* and reparent */
/* and reparent */
libvlc_video_reparent
(
input
,
(
libvlc_drawable_t
)
dsi_x11
->
drawable
,
exception
);
drawable
=
dsi_x11
->
drawable
;
libvlc_video_reparent
(
input
,
drawable
,
exception
);
CHECK_EXCEPTION_FREE
;
CHECK_EXCEPTION_FREE
;
/* also update the drawable variable value */
value
.
i_int
=
dsi_x11
->
drawable
;
VLC_VariableSet
(
0
,
"drawable"
,
value
);
XFreeGC
(
dsi_x11
->
display
,
gc
);
XFreeGC
(
dsi_x11
->
display
,
gc
);
#endif
#endif
...
...
include/vlc/libvlc.h
View file @
7078d5da
...
@@ -297,14 +297,6 @@ typedef int libvlc_drawable_t;
...
@@ -297,14 +297,6 @@ typedef int libvlc_drawable_t;
vlc_bool_t
libvlc_input_has_vout
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
vlc_bool_t
libvlc_input_has_vout
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
float
libvlc_input_get_fps
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
float
libvlc_input_get_fps
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
/**
* Toggle fullscreen status on video output
* \param p_input the input
* \param drawable the drawable where the video output thread will display the video
* \param p_exception an initialized exception
*/
void
libvlc_set_video_drawable
(
libvlc_instance_t
*
,
libvlc_drawable_t
,
libvlc_exception_t
*
);
/**
/**
* Toggle fullscreen status on video output
* Toggle fullscreen status on video output
* \param p_input the input
* \param p_input the input
...
...
src/control/video.c
View file @
7078d5da
...
@@ -69,18 +69,6 @@ static vout_thread_t *GetVout( libvlc_input_t *p_input,
...
@@ -69,18 +69,6 @@ static vout_thread_t *GetVout( libvlc_input_t *p_input,
* Exported functions
* Exported functions
**********************************************************************/
**********************************************************************/
void
libvlc_set_video_drawable
(
libvlc_instance_t
*
p_instance
,
libvlc_drawable_t
drawable
,
libvlc_exception_t
*
p_e
)
{
vlc_value_t
value
;
value
.
i_int
=
drawable
;
var_Set
(
p_instance
->
p_libvlc_int
,
"drawable"
,
value
);
}
void
libvlc_set_fullscreen
(
libvlc_input_t
*
p_input
,
int
b_fullscreen
,
void
libvlc_set_fullscreen
(
libvlc_input_t
*
p_input
,
int
b_fullscreen
,
libvlc_exception_t
*
p_e
)
libvlc_exception_t
*
p_e
)
{
{
...
@@ -226,6 +214,13 @@ int libvlc_video_reparent( libvlc_input_t *p_input, libvlc_drawable_t d,
...
@@ -226,6 +214,13 @@ int libvlc_video_reparent( libvlc_input_t *p_input, libvlc_drawable_t d,
libvlc_exception_t
*
p_e
)
libvlc_exception_t
*
p_e
)
{
{
vout_thread_t
*
p_vout
=
GetVout
(
p_input
,
p_e
);
vout_thread_t
*
p_vout
=
GetVout
(
p_input
,
p_e
);
if
(
p_vout
==
NULL
)
{
/// \todo: set exception
return
0
;
}
vout_Control
(
p_vout
,
VOUT_REPARENT
,
d
);
vout_Control
(
p_vout
,
VOUT_REPARENT
,
d
);
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_vout
);
...
@@ -242,7 +237,7 @@ void libvlc_video_resize( libvlc_input_t *p_input, int width, int height, libvlc
...
@@ -242,7 +237,7 @@ void libvlc_video_resize( libvlc_input_t *p_input, int width, int height, libvlc
/* global video settings */
/* global video settings */
void
libvlc_video_set_parent
(
libvlc_instance_t
*
p_instance
,
libvlc_drawable_t
d
,
void
libvlc_video_set_parent
(
libvlc_instance_t
*
p_instance
,
libvlc_drawable_t
d
,
libvlc_exception_t
*
p_e
)
libvlc_exception_t
*
p_e
)
{
{
/* set as default for future vout instances */
/* set as default for future vout instances */
var_SetInteger
(
p_instance
->
p_libvlc_int
,
"drawable"
,
(
int
)
d
);
var_SetInteger
(
p_instance
->
p_libvlc_int
,
"drawable"
,
(
int
)
d
);
...
...
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