Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
3c74cac8
Commit
3c74cac8
authored
Nov 19, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/: don't re-use the same pts twice.
* src/misc/modules.c: win32 fix for when module fails loading.
parent
c729eee9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
modules/codec/ffmpeg/audio.c
modules/codec/ffmpeg/audio.c
+2
-2
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+2
-1
src/misc/modules.c
src/misc/modules.c
+2
-3
No files found.
modules/codec/ffmpeg/audio.c
View file @
3c74cac8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* audio.c: audio decoder using ffmpeg library
* audio.c: audio decoder using ffmpeg library
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2003 VideoLAN
* Copyright (C) 1999-2003 VideoLAN
* $Id: audio.c,v 1.2
3 2003/11/17 02:52:39 fenrir
Exp $
* $Id: audio.c,v 1.2
4 2003/11/19 13:10:48 gbazin
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
* Gildas Bazin <gbazin@netcourrier.com>
...
@@ -212,8 +212,8 @@ aout_buffer_t *E_( DecodeAudio )( decoder_t *p_dec, block_t **pp_block )
...
@@ -212,8 +212,8 @@ aout_buffer_t *E_( DecodeAudio )( decoder_t *p_dec, block_t **pp_block )
p_block
->
i_pts
!=
aout_DateGet
(
&
p_sys
->
end_date
)
)
p_block
->
i_pts
!=
aout_DateGet
(
&
p_sys
->
end_date
)
)
{
{
aout_DateSet
(
&
p_sys
->
end_date
,
p_block
->
i_pts
);
aout_DateSet
(
&
p_sys
->
end_date
,
p_block
->
i_pts
);
p_block
->
i_pts
=
0
;
}
}
p_block
->
i_pts
=
0
;
/* **** Now we can output these samples **** */
/* **** Now we can output these samples **** */
i_samples
=
i_output
/
2
/
p_sys
->
p_context
->
channels
;
i_samples
=
i_output
/
2
/
p_sys
->
p_context
->
channels
;
...
...
modules/codec/ffmpeg/video.c
View file @
3c74cac8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* video.c: video decoder using the ffmpeg library
* video.c: video decoder using the ffmpeg library
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.c,v 1.4
6 2003/11/17 02:52:39 fenrir
Exp $
* $Id: video.c,v 1.4
7 2003/11/19 13:10:48 gbazin
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
* Gildas Bazin <gbazin@netcourrier.com>
...
@@ -353,6 +353,7 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
...
@@ -353,6 +353,7 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
if
(
p_block
->
i_pts
>
0
)
if
(
p_block
->
i_pts
>
0
)
{
{
p_sys
->
input_pts
=
p_block
->
i_pts
;
p_sys
->
input_pts
=
p_block
->
i_pts
;
p_block
->
i_pts
=
0
;
/* Make sure we don't reuse the same pts twice */
}
}
/* TODO implement it in a better way */
/* TODO implement it in a better way */
...
...
src/misc/modules.c
View file @
3c74cac8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions
* modules.c : Builtin and plugin modules management functions
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.1
39 2003/11/19 10:17:51
gbazin Exp $
* $Id: modules.c,v 1.1
40 2003/11/19 13:10:48
gbazin Exp $
*
*
* Authors: Sam Hocevar <sam@zoy.org>
* Authors: Sam Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com>
* Ethan C. Baldridge <BaldridgeE@cadmus.com>
...
@@ -862,13 +862,12 @@ static int AllocatePluginFile( vlc_object_t * p_this, MYCHAR * psz_file )
...
@@ -862,13 +862,12 @@ static int AllocatePluginFile( vlc_object_t * p_this, MYCHAR * psz_file )
}
}
#elif defined(HAVE_DL_WINDOWS) && defined(WIN32)
#elif defined(HAVE_DL_WINDOWS) && defined(WIN32)
char
psz_filename
[
MAX_PATH
];
handle
=
LoadLibrary
(
psz_file
);
handle
=
LoadLibrary
(
psz_file
);
if
(
handle
==
NULL
)
if
(
handle
==
NULL
)
{
{
char
*
psz_error
=
GetWindowsError
();
char
*
psz_error
=
GetWindowsError
();
msg_Warn
(
p_this
,
"cannot load module `%s' (%s)"
,
msg_Warn
(
p_this
,
"cannot load module `%s' (%s)"
,
psz_file
name
,
psz_error
);
psz_file
,
psz_error
);
free
(
psz_error
);
free
(
psz_error
);
}
}
...
...
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