Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d1807d80
Commit
d1807d80
authored
Nov 06, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Merged trunk changes r9184:9186 to 0.8.1 branch.
parent
a8e2582f
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
129 additions
and
104 deletions
+129
-104
include/vlc_filter.h
include/vlc_filter.h
+1
-1
modules/misc/gnutls.c
modules/misc/gnutls.c
+24
-6
modules/video_filter/blend.c
modules/video_filter/blend.c
+101
-95
modules/video_filter/logo.c
modules/video_filter/logo.c
+2
-1
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+1
-1
No files found.
include/vlc_filter.h
View file @
d1807d80
...
@@ -55,7 +55,7 @@ struct filter_t
...
@@ -55,7 +55,7 @@ struct filter_t
block_t
*
(
*
pf_audio_filter
)
(
filter_t
*
,
block_t
*
);
block_t
*
(
*
pf_audio_filter
)
(
filter_t
*
,
block_t
*
);
void
(
*
pf_video_blend
)
(
filter_t
*
,
picture_t
*
,
void
(
*
pf_video_blend
)
(
filter_t
*
,
picture_t
*
,
picture_t
*
,
picture_t
*
,
picture_t
*
,
picture_t
*
,
int
,
int
);
int
,
int
,
int
);
subpicture_t
*
(
*
pf_sub_filter
)
(
filter_t
*
,
mtime_t
);
subpicture_t
*
(
*
pf_sub_filter
)
(
filter_t
*
,
mtime_t
);
subpicture_t
*
(
*
pf_render_string
)
(
filter_t
*
,
block_t
*
);
subpicture_t
*
(
*
pf_render_string
)
(
filter_t
*
,
block_t
*
);
...
...
modules/misc/gnutls.c
View file @
d1807d80
...
@@ -63,8 +63,8 @@ vlc_module_begin();
...
@@ -63,8 +63,8 @@ vlc_module_begin();
set_capability
(
"tls"
,
1
);
set_capability
(
"tls"
,
1
);
set_callbacks
(
Open
,
Close
);
set_callbacks
(
Open
,
Close
);
/*add_integer( "dh-bits", 1024
, NULL, DH_BITS_TEXT,
add_integer
(
"dh-bits"
,
DH_BITS
,
NULL
,
DH_BITS_TEXT
,
DH_BITS_LONGTEXT, VLC_TRUE );
*/
DH_BITS_LONGTEXT
,
VLC_TRUE
);
vlc_module_end
();
vlc_module_end
();
...
@@ -168,6 +168,7 @@ gnutls_ServerSessionPrepare( tls_server_t *p_server )
...
@@ -168,6 +168,7 @@ gnutls_ServerSessionPrepare( tls_server_t *p_server )
tls_session_t
*
p_session
;
tls_session_t
*
p_session
;
gnutls_session
*
p_sys
;
gnutls_session
*
p_sys
;
int
val
;
int
val
;
vlc_value_t
bits
;
p_sys
=
(
gnutls_session
*
)
malloc
(
sizeof
(
gnutls_session
*
)
);
p_sys
=
(
gnutls_session
*
)
malloc
(
sizeof
(
gnutls_session
*
)
);
if
(
p_sys
==
NULL
)
if
(
p_sys
==
NULL
)
...
@@ -208,7 +209,14 @@ gnutls_ServerSessionPrepare( tls_server_t *p_server )
...
@@ -208,7 +209,14 @@ gnutls_ServerSessionPrepare( tls_server_t *p_server )
/*gnutls_certificate_server_set_request( p_session->session,
/*gnutls_certificate_server_set_request( p_session->session,
GNUTLS_CERT_REQUEST ); */
GNUTLS_CERT_REQUEST ); */
gnutls_dh_set_prime_bits
(
*
p_sys
,
DH_BITS
);
if
(
var_Get
(
p_server
->
p_tls
,
"dh-bits"
,
&
bits
)
!=
VLC_SUCCESS
)
{
var_Create
(
p_server
->
p_tls
,
"dh-bits"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_server
->
p_tls
,
"dh-bits"
,
&
bits
);
}
gnutls_dh_set_prime_bits
(
*
p_sys
,
bits
.
i_int
);
p_session
=
malloc
(
sizeof
(
struct
tls_session_t
)
);
p_session
=
malloc
(
sizeof
(
struct
tls_session_t
)
);
if
(
p_session
==
NULL
)
if
(
p_session
==
NULL
)
...
@@ -350,8 +358,18 @@ gnutls_ServerCreate( tls_t *p_this, const char *psz_cert_path,
...
@@ -350,8 +358,18 @@ gnutls_ServerCreate( tls_t *p_this, const char *psz_cert_path,
val
=
gnutls_dh_params_init
(
&
p_server_sys
->
dh_params
);
val
=
gnutls_dh_params_init
(
&
p_server_sys
->
dh_params
);
if
(
val
>=
0
)
if
(
val
>=
0
)
{
{
vlc_value_t
bits
;
if
(
var_Get
(
p_this
,
"dh-bits"
,
&
bits
)
!=
VLC_SUCCESS
)
{
var_Create
(
p_this
,
"dh-bits"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_this
,
"dh-bits"
,
&
bits
);
}
msg_Dbg
(
p_this
,
"Computing Diffie Hellman ciphers parameters"
);
msg_Dbg
(
p_this
,
"Computing Diffie Hellman ciphers parameters"
);
val
=
gnutls_dh_params_generate2
(
p_server_sys
->
dh_params
,
DH_BITS
);
val
=
gnutls_dh_params_generate2
(
p_server_sys
->
dh_params
,
bits
.
i_int
);
}
}
if
(
val
<
0
)
if
(
val
<
0
)
{
{
...
@@ -459,13 +477,13 @@ Open( vlc_object_t *p_this )
...
@@ -459,13 +477,13 @@ Open( vlc_object_t *p_this )
if
(
gnutls_global_init
(
)
)
if
(
gnutls_global_init
(
)
)
{
{
msg_Warn
(
p_this
,
"cannot initialize GNUTLS"
);
msg_Warn
(
p_this
,
"cannot initialize GNUTLS"
);
vlc_mutex_unlock
(
lock
.
p_address
);
vlc_mutex_unlock
(
lock
.
p_address
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
gnutls_check_version
(
"1.0.0"
)
==
NULL
)
if
(
gnutls_check_version
(
"1.0.0"
)
==
NULL
)
{
{
gnutls_global_deinit
(
);
gnutls_global_deinit
(
);
vlc_mutex_unlock
(
lock
.
p_address
);
vlc_mutex_unlock
(
lock
.
p_address
);
msg_Err
(
p_this
,
"unsupported GNUTLS version"
);
msg_Err
(
p_this
,
"unsupported GNUTLS version"
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
modules/video_filter/blend.c
View file @
d1807d80
This diff is collapsed.
Click to expand it.
modules/video_filter/logo.c
View file @
d1807d80
...
@@ -441,7 +441,8 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -441,7 +441,8 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
vout_DatePicture
(
p_sys
->
p_vout
,
p_outpic
,
p_pic
->
date
);
vout_DatePicture
(
p_sys
->
p_vout
,
p_outpic
,
p_pic
->
date
);
p_sys
->
p_blend
->
pf_video_blend
(
p_sys
->
p_blend
,
p_outpic
,
p_outpic
,
p_sys
->
p_blend
->
pf_video_blend
(
p_sys
->
p_blend
,
p_outpic
,
p_outpic
,
p_sys
->
p_pic
,
p_sys
->
posx
,
p_sys
->
posy
);
p_sys
->
p_pic
,
p_sys
->
posx
,
p_sys
->
posy
,
255
);
vout_DisplayPicture
(
p_sys
->
p_vout
,
p_outpic
);
vout_DisplayPicture
(
p_sys
->
p_vout
,
p_outpic
);
}
}
...
...
src/video_output/vout_subpictures.c
View file @
d1807d80
...
@@ -725,7 +725,7 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
...
@@ -725,7 +725,7 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
p_fmt
->
i_height
;
p_fmt
->
i_height
;
p_spu
->
p_blend
->
pf_video_blend
(
p_spu
->
p_blend
,
p_pic_dst
,
p_spu
->
p_blend
->
pf_video_blend
(
p_spu
->
p_blend
,
p_pic_dst
,
p_pic_src
,
&
p_region
->
picture
,
i_x_offset
,
i_y_offset
);
p_pic_src
,
&
p_region
->
picture
,
i_x_offset
,
i_y_offset
,
255
);
p_region
=
p_region
->
p_next
;
p_region
=
p_region
->
p_next
;
}
}
...
...
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