Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
d6a720cb
Commit
d6a720cb
authored
Sep 18, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc possible buffer/resource misuse & tidy compilation
parent
95024e06
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+1
-1
modules/codec/ffmpeg/ffmpeg.c
modules/codec/ffmpeg/ffmpeg.c
+3
-3
src/misc/threads.c
src/misc/threads.c
+3
-0
src/playlist/view.c
src/playlist/view.c
+1
-0
No files found.
modules/codec/ffmpeg/encoder.c
View file @
d6a720cb
...
...
@@ -33,7 +33,7 @@
#include <vlc/decoder.h>
/* ffmpeg header */
#define HAVE_MMX
#define HAVE_MMX
1
#ifdef HAVE_FFMPEG_AVCODEC_H
# include <ffmpeg/avcodec.h>
#else
...
...
modules/codec/ffmpeg/ffmpeg.c
View file @
d6a720cb
...
...
@@ -29,7 +29,7 @@
#include <vlc/decoder.h>
/* ffmpeg header */
#define HAVE_MMX
#define HAVE_MMX
1
#ifdef HAVE_FFMPEG_AVCODEC_H
# include <ffmpeg/avcodec.h>
#else
...
...
@@ -360,8 +360,8 @@ static void LibavcodecCallback( void *p_opaque, int i_level,
psz_item_name
=
p_avc
->
item_name
(
p_opaque
);
psz_new_format
=
malloc
(
strlen
(
psz_format
)
+
strlen
(
psz_item_name
)
+
18
+
5
);
sprintf
(
psz_new_format
,
"%s (%s@%p)"
,
psz_format
,
p_avc
->
item_name
(
p_opaque
),
p_opaque
);
s
n
printf
(
psz_new_format
,
strlen
(
psz_format
)
+
strlen
(
psz_item_name
)
+
18
+
5
,
"%s (%s@%p)"
,
psz_format
,
p_avc
->
item_name
(
p_opaque
),
p_opaque
);
msg_GenericVa
(
p_this
,
i_vlc_level
,
MODULE_STRING
,
psz_new_format
,
va
);
free
(
psz_new_format
);
}
...
...
src/misc/threads.c
View file @
d6a720cb
...
...
@@ -483,6 +483,9 @@ int __vlc_cond_destroy( char * psz_file, int i_line, vlc_cond_t *p_condvar )
i_result
=
!
CloseHandle
(
p_condvar
->
event
)
||
!
CloseHandle
(
p_condvar
->
semaphore
);
if
(
p_condvar
->
semaphore
!=
NULL
)
DeleteCriticalSection
(
&
p_condvar
->
csection
);
#elif defined( HAVE_KERNEL_SCHEDULER_H )
p_condvar
->
init
=
0
;
return
0
;
...
...
src/playlist/view.c
View file @
d6a720cb
...
...
@@ -301,6 +301,7 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist, int i_view,
p_item
->
pp_parents
=
NULL
;
p_item
->
i_parents
=
0
;
p_item
->
i_serial
=
0
;
p_item
->
i_flags
|=
PLAYLIST_SKIP_FLAG
;
/* Default behaviour */
...
...
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