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
d794dd85
Commit
d794dd85
authored
Jul 03, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Format string fixes
parent
f2dcb787
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
15 deletions
+19
-15
modules/access_filter/bandwidth.c
modules/access_filter/bandwidth.c
+1
-1
modules/codec/adpcm.c
modules/codec/adpcm.c
+1
-1
modules/misc/audioscrobbler.c
modules/misc/audioscrobbler.c
+4
-3
modules/misc/dummy/decoder.c
modules/misc/dummy/decoder.c
+1
-1
modules/misc/stats/decoder.c
modules/misc/stats/decoder.c
+4
-2
modules/misc/stats/encoder.c
modules/misc/stats/encoder.c
+2
-2
modules/misc/stats/vout.c
modules/misc/stats/vout.c
+2
-1
modules/mux/asf.c
modules/mux/asf.c
+1
-1
modules/mux/mpjpeg.c
modules/mux/mpjpeg.c
+1
-1
modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c
...les/video_filter/dynamicoverlay/dynamicoverlay_commands.c
+2
-2
No files found.
modules/access_filter/bandwidth.c
View file @
d794dd85
...
@@ -154,7 +154,7 @@ retry:
...
@@ -154,7 +154,7 @@ retry:
len
=
src
->
pf_read
(
src
,
buffer
,
len
);
len
=
src
->
pf_read
(
src
,
buffer
,
len
);
access
->
info
=
src
->
info
;
access
->
info
=
src
->
info
;
msg_Dbg
(
access
,
"read %u bytes"
,
len
);
msg_Dbg
(
access
,
"read %
z
u bytes"
,
len
);
return
len
;
return
len
;
}
}
...
...
modules/codec/adpcm.c
View file @
d794dd85
...
@@ -241,7 +241,7 @@ static int OpenDecoder( vlc_object_t *p_this )
...
@@ -241,7 +241,7 @@ static int OpenDecoder( vlc_object_t *p_this )
}
}
msg_Dbg
(
p_dec
,
"format: samplerate:%d Hz channels:%d bits/sample:%d "
msg_Dbg
(
p_dec
,
"format: samplerate:%d Hz channels:%d bits/sample:%d "
"blockalign:%
d samplesperblock:%d
"
,
"blockalign:%
zu samplesperblock:%zu
"
,
p_dec
->
fmt_in
.
audio
.
i_rate
,
p_dec
->
fmt_in
.
audio
.
i_channels
,
p_dec
->
fmt_in
.
audio
.
i_rate
,
p_dec
->
fmt_in
.
audio
.
i_channels
,
p_dec
->
fmt_in
.
audio
.
i_bitspersample
,
p_sys
->
i_block
,
p_dec
->
fmt_in
.
audio
.
i_bitspersample
,
p_sys
->
i_block
,
p_sys
->
i_samplesperblock
);
p_sys
->
i_samplesperblock
);
...
...
modules/misc/audioscrobbler.c
View file @
d794dd85
...
@@ -353,7 +353,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -353,7 +353,7 @@ static void Run( intf_thread_t *p_intf )
p_song
=
&
p_sys
->
p_queue
[
i_song
];
p_song
=
&
p_sys
->
p_queue
[
i_song
];
if
(
!
asprintf
(
&
psz_submit_song
,
if
(
!
asprintf
(
&
psz_submit_song
,
"&a%%5B%d%%5D=%s&t%%5B%d%%5D=%s"
"&a%%5B%d%%5D=%s&t%%5B%d%%5D=%s"
"&i%%5B%d%%5D=%
ll
u&o%%5B%d%%5D=P&r%%5B%d%%5D="
"&i%%5B%d%%5D=%
j
u&o%%5B%d%%5D=P&r%%5B%d%%5D="
"&l%%5B%d%%5D=%d&b%%5B%d%%5D=%s"
"&l%%5B%d%%5D=%d&b%%5B%d%%5D=%s"
"&n%%5B%d%%5D=%s&m%%5B%d%%5D=%s"
,
"&n%%5B%d%%5D=%s&m%%5B%d%%5D=%s"
,
i_song
,
p_song
->
psz_a
,
i_song
,
p_song
->
psz_t
,
i_song
,
p_song
->
psz_a
,
i_song
,
p_song
->
psz_t
,
...
@@ -695,7 +695,7 @@ static int Handshake( intf_thread_t *p_this )
...
@@ -695,7 +695,7 @@ static int Handshake( intf_thread_t *p_this )
{
{
char
*
psz_username
,
*
psz_password
;
char
*
psz_username
,
*
psz_password
;
time_t
timestamp
;
time_t
timestamp
;
char
psz_timestamp
[
33
];
char
psz_timestamp
[
21
];
struct
md5_s
p_struct_md5
;
struct
md5_s
p_struct_md5
;
...
@@ -745,7 +745,8 @@ static int Handshake( intf_thread_t *p_this )
...
@@ -745,7 +745,8 @@ static int Handshake( intf_thread_t *p_this )
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
}
}
snprintf
(
psz_timestamp
,
33
,
"%llu"
,
(
uintmax_t
)
timestamp
);
snprintf
(
psz_timestamp
,
sizeof
(
psz_timestamp
),
"%"
PRIu64
,
(
uint64_t
)
timestamp
);
/* generates a md5 hash of :
/* generates a md5 hash of :
* - md5 hash of the password, plus
* - md5 hash of the password, plus
...
...
modules/misc/dummy/decoder.c
View file @
d794dd85
...
@@ -135,7 +135,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
...
@@ -135,7 +135,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
write
(
p_sys
->
i_fd
,
p_block
->
p_buffer
,
p_block
->
i_buffer
);
write
(
p_sys
->
i_fd
,
p_block
->
p_buffer
,
p_block
->
i_buffer
);
#endif
#endif
msg_Dbg
(
p_dec
,
"dumped %
i
bytes"
,
p_block
->
i_buffer
);
msg_Dbg
(
p_dec
,
"dumped %
zu
bytes"
,
p_block
->
i_buffer
);
}
}
block_Release
(
p_block
);
block_Release
(
p_block
);
...
...
modules/misc/stats/decoder.c
View file @
d794dd85
...
@@ -76,8 +76,10 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
...
@@ -76,8 +76,10 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
p_block
->
i_buffer
==
kBufferSize
)
if
(
p_block
->
i_buffer
==
kBufferSize
)
{
{
msg_Dbg
(
p_dec
,
"got %d ms"
,
*
(
mtime_t
*
)
p_block
->
p_buffer
/
1000
);
msg_Dbg
(
p_dec
,
"got %"
PRIu64
" ms"
,
msg_Dbg
(
p_dec
,
"got %d ms offset"
,
(
mdate
()
-
*
(
mtime_t
*
)
p_block
->
p_buffer
)
/
1000
);
*
(
mtime_t
*
)
p_block
->
p_buffer
/
1000
);
msg_Dbg
(
p_dec
,
"got %"
PRIu64
" ms offset"
,
(
mdate
()
-
*
(
mtime_t
*
)
p_block
->
p_buffer
)
/
1000
);
*
(
mtime_t
*
)(
p_pic
->
p
->
p_pixels
)
=
*
(
mtime_t
*
)
p_block
->
p_buffer
;
*
(
mtime_t
*
)(
p_pic
->
p
->
p_pixels
)
=
*
(
mtime_t
*
)
p_block
->
p_buffer
;
}
}
else
else
...
...
modules/misc/stats/encoder.c
View file @
d794dd85
...
@@ -83,8 +83,8 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
...
@@ -83,8 +83,8 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
p_block
->
i_length
=
kBufferSize
;
p_block
->
i_length
=
kBufferSize
;
p_block
->
i_dts
=
p_pict
->
date
;
p_block
->
i_dts
=
p_pict
->
date
;
msg_Dbg
(
p_enc
,
"putting %
dms"
,
*
(
mtime_t
*
)
p_block
->
p_buffer
/
1000
);
msg_Dbg
(
p_enc
,
"putting %
"
PRIu64
"ms"
,
*
(
mtime_t
*
)
p_block
->
p_buffer
/
1000
);
return
p_block
;
return
p_block
;
}
}
...
...
modules/misc/stats/vout.c
View file @
d794dd85
...
@@ -214,7 +214,8 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -214,7 +214,8 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
*****************************************************************************/
*****************************************************************************/
static
void
Display
(
vout_thread_t
*
p_vout
,
picture_t
*
p_pic
)
static
void
Display
(
vout_thread_t
*
p_vout
,
picture_t
*
p_pic
)
{
{
msg_Dbg
(
p_vout
,
"VOUT got %d ms offset"
,
(
mdate
()
-
*
(
mtime_t
*
)
p_pic
->
p
->
p_pixels
)
/
1000
);
msg_Dbg
(
p_vout
,
"VOUT got %"
PRIu64
" ms offset"
,
(
mdate
()
-
*
(
mtime_t
*
)
p_pic
->
p
->
p_pixels
)
/
1000
);
/* No need to do anything, the fake direct buffers stay as they are */
/* No need to do anything, the fake direct buffers stay as they are */
}
}
...
...
modules/mux/asf.c
View file @
d794dd85
...
@@ -222,7 +222,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -222,7 +222,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_bitrate_override
=
config_GetInt
(
p_mux
,
"sout-asf-bitrate-override"
);
p_sys
->
i_bitrate_override
=
config_GetInt
(
p_mux
,
"sout-asf-bitrate-override"
);
msg_Dbg
(
p_mux
,
"Packet size %d"
,
p_sys
->
i_packet_size
);
msg_Dbg
(
p_mux
,
"Packet size %d"
,
p_sys
->
i_packet_size
);
if
(
p_sys
->
i_bitrate_override
)
if
(
p_sys
->
i_bitrate_override
)
msg_Dbg
(
p_mux
,
"Bitrate override %
d"
,
p_sys
->
i_bitrate_override
);
msg_Dbg
(
p_mux
,
"Bitrate override %
"
PRId64
,
p_sys
->
i_bitrate_override
);
p_sys
->
i_packet_count
=
0
;
p_sys
->
i_packet_count
=
0
;
/* Generate a random fid */
/* Generate a random fid */
...
...
modules/mux/mpjpeg.c
View file @
d794dd85
...
@@ -165,7 +165,7 @@ static int Mux( sout_mux_t *p_mux )
...
@@ -165,7 +165,7 @@ static int Mux( sout_mux_t *p_mux )
static
const
char
psz_hfmt
[]
=
"
\r\n
"
static
const
char
psz_hfmt
[]
=
"
\r\n
"
"--"
BOUNDARY
"
\r\n
"
"--"
BOUNDARY
"
\r\n
"
"Content-Type: image/jpeg
\r\n
"
"Content-Type: image/jpeg
\r\n
"
"Content-Length: %u
\r\n
"
"Content-Length: %
z
u
\r\n
"
"
\r\n
"
;
"
\r\n
"
;
block_t
*
p_data
=
block_FifoGet
(
p_fifo
);
block_t
*
p_data
=
block_FifoGet
(
p_fifo
);
block_t
*
p_header
=
block_New
(
p_mux
,
sizeof
(
psz_hfmt
)
+
20
);
block_t
*
p_header
=
block_New
(
p_mux
,
sizeof
(
psz_hfmt
)
+
20
);
...
...
modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c
View file @
d794dd85
...
@@ -510,7 +510,7 @@ static int exec_DataSharedMem( filter_t *p_filter,
...
@@ -510,7 +510,7 @@ static int exec_DataSharedMem( filter_t *p_filter,
if
(
i_neededsize
>
i_size
)
if
(
i_neededsize
>
i_size
)
{
{
msg_Err
(
p_filter
,
msg_Err
(
p_filter
,
"Insufficient data in shared memory. need %
d, got %d
"
,
"Insufficient data in shared memory. need %
zu, got %zu
"
,
i_neededsize
,
i_size
);
i_neededsize
,
i_size
);
p_ovl
->
data
.
p_pic
->
pf_release
(
p_ovl
->
data
.
p_pic
);
p_ovl
->
data
.
p_pic
->
pf_release
(
p_ovl
->
data
.
p_pic
);
free
(
p_ovl
->
data
.
p_pic
);
free
(
p_ovl
->
data
.
p_pic
);
...
@@ -917,7 +917,7 @@ void RegisterCommand( filter_t *p_filter )
...
@@ -917,7 +917,7 @@ void RegisterCommand( filter_t *p_filter )
p_sys
->
pp_commands
[
i_index
]
->
pf_unparse
=
p_commands
[
i_index
].
pf_unparse
;
p_sys
->
pp_commands
[
i_index
]
->
pf_unparse
=
p_commands
[
i_index
].
pf_unparse
;
}
}
msg_Dbg
(
p_filter
,
"%
d
commands are available"
,
p_sys
->
i_commands
);
msg_Dbg
(
p_filter
,
"%
zu
commands are available"
,
p_sys
->
i_commands
);
for
(
size_t
i_index
=
0
;
i_index
<
p_sys
->
i_commands
;
i_index
++
)
for
(
size_t
i_index
=
0
;
i_index
<
p_sys
->
i_commands
;
i_index
++
)
msg_Dbg
(
p_filter
,
" %s"
,
p_sys
->
pp_commands
[
i_index
]
->
psz_command
);
msg_Dbg
(
p_filter
,
" %s"
,
p_sys
->
pp_commands
[
i_index
]
->
psz_command
);
}
}
...
...
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