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
3d331406
Commit
3d331406
authored
Jun 22, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: rework of the input.
parent
2455945c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
src/interface/interface.c
src/interface/interface.c
+1
-3
src/libvlc.c
src/libvlc.c
+3
-5
src/video_output/video_output.c
src/video_output/video_output.c
+7
-0
src/video_output/vout_synchro.c
src/video_output/vout_synchro.c
+4
-4
No files found.
src/interface/interface.c
View file @
3d331406
...
@@ -37,9 +37,7 @@
...
@@ -37,9 +37,7 @@
#include <string.h>
/* strerror() */
#include <string.h>
/* strerror() */
#include <vlc/vlc.h>
#include <vlc/vlc.h>
#include <vlc/input.h>
#include "stream_control.h"
#include "input_ext-intf.h"
#include "audio_output.h"
#include "audio_output.h"
...
...
src/libvlc.c
View file @
3d331406
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
* Preamble
* Preamble
*****************************************************************************/
*****************************************************************************/
#include <vlc/vlc.h>
#include <vlc/vlc.h>
#include <vlc/input.h>
#ifdef HAVE_ERRNO_H
#ifdef HAVE_ERRNO_H
# include <errno.h>
/* ENOMEM */
# include <errno.h>
/* ENOMEM */
...
@@ -66,9 +67,6 @@
...
@@ -66,9 +67,6 @@
#include "vlc_error.h"
#include "vlc_error.h"
#include "stream_control.h"
#include "input_ext-intf.h"
#include "vlc_playlist.h"
#include "vlc_playlist.h"
#include "vlc_interface.h"
#include "vlc_interface.h"
...
@@ -1337,7 +1335,7 @@ float VLC_SpeedFaster( int i_object )
...
@@ -1337,7 +1335,7 @@ float VLC_SpeedFaster( int i_object )
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
if
(
i_object
)
vlc_object_release
(
p_vlc
);
if
(
i_object
)
vlc_object_release
(
p_vlc
);
return
val
.
f_float
/
DEFAULT_RATE
;
return
val
.
f_float
/
INPUT_RATE_DEFAULT
;
}
}
/**
/**
...
@@ -1375,7 +1373,7 @@ float VLC_SpeedSlower( int i_object )
...
@@ -1375,7 +1373,7 @@ float VLC_SpeedSlower( int i_object )
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
if
(
i_object
)
vlc_object_release
(
p_vlc
);
if
(
i_object
)
vlc_object_release
(
p_vlc
);
return
val
.
f_float
/
DEFAULT_RATE
;
return
val
.
f_float
/
INPUT_RATE_DEFAULT
;
}
}
/**
/**
...
...
src/video_output/video_output.c
View file @
3d331406
...
@@ -1376,6 +1376,8 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1376,6 +1376,8 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
var_Set
(
p_input
,
"deinterlace-mode"
,
val
);
var_Set
(
p_input
,
"deinterlace-mode"
,
val
);
}
}
/* FIXME FIXME input2 --fenrir */
#if 0
/* now restart all video streams */
/* now restart all video streams */
vlc_mutex_lock( &p_input->stream.stream_lock );
vlc_mutex_lock( &p_input->stream.stream_lock );
...
@@ -1395,6 +1397,7 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1395,6 +1397,7 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
vlc_mutex_unlock( &p_input->stream.stream_lock );
vlc_mutex_unlock( &p_input->stream.stream_lock );
vlc_object_release( p_input );
vlc_object_release( p_input );
#endif
val
.
b_bool
=
VLC_TRUE
;
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_vout
,
"intf-change"
,
val
);
var_Set
(
p_vout
,
"intf-change"
,
val
);
...
@@ -1417,6 +1420,9 @@ static int FilterCallback( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1417,6 +1420,9 @@ static int FilterCallback( vlc_object_t *p_this, char const *psz_cmd,
msg_Err
(
p_vout
,
"Input not found"
);
msg_Err
(
p_vout
,
"Input not found"
);
return
(
VLC_EGENERIC
);
return
(
VLC_EGENERIC
);
}
}
/* FIXME FIXME input2 --fenrir */
#if 0
/* Restart the video stream */
/* Restart the video stream */
vlc_mutex_lock( &p_input->stream.stream_lock );
vlc_mutex_lock( &p_input->stream.stream_lock );
...
@@ -1436,6 +1442,7 @@ static int FilterCallback( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1436,6 +1442,7 @@ static int FilterCallback( vlc_object_t *p_this, char const *psz_cmd,
vlc_mutex_unlock( &p_input->stream.stream_lock );
vlc_mutex_unlock( &p_input->stream.stream_lock );
vlc_object_release( p_input );
vlc_object_release( p_input );
#endif
val
.
b_bool
=
VLC_TRUE
;
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_vout
,
"intf-change"
,
val
);
var_Set
(
p_vout
,
"intf-change"
,
val
);
...
...
src/video_output/vout_synchro.c
View file @
3d331406
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vout_synchro.c : frame dropping routines
* vout_synchro.c : frame dropping routines
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
* Copyright (C) 1999-2004 VideoLAN
* $Id
: vout_synchro.c,v 1.7 2004/01/25 17:16:06 zorglub Exp
$
* $Id$
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
@@ -99,9 +99,9 @@
...
@@ -99,9 +99,9 @@
#include <vlc/vlc.h>
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include <vlc/vout.h>
#include <vlc/input.h>
#include "vout_synchro.h"
#include "vout_synchro.h"
#include "stream_control.h"
/*
/*
* Local prototypes
* Local prototypes
...
@@ -182,7 +182,7 @@ vlc_bool_t vout_SynchroChoose( vout_synchro_t * p_synchro, int i_coding_type,
...
@@ -182,7 +182,7 @@ vlc_bool_t vout_SynchroChoose( vout_synchro_t * p_synchro, int i_coding_type,
now
=
mdate
();
now
=
mdate
();
period
=
1000000
*
1001
/
p_synchro
->
i_frame_rate
period
=
1000000
*
1001
/
p_synchro
->
i_frame_rate
*
p_synchro
->
i_current_rate
/
DEFAULT_RATE
;
*
p_synchro
->
i_current_rate
/
INPUT_RATE_DEFAULT
;
p_synchro
->
i_render_time
=
i_render_time
;
p_synchro
->
i_render_time
=
i_render_time
;
...
@@ -350,7 +350,7 @@ void vout_SynchroNewPicture( vout_synchro_t * p_synchro, int i_coding_type,
...
@@ -350,7 +350,7 @@ void vout_SynchroNewPicture( vout_synchro_t * p_synchro, int i_coding_type,
mtime_t
next_dts
,
int
i_current_rate
)
mtime_t
next_dts
,
int
i_current_rate
)
{
{
mtime_t
period
=
1000000
*
1001
/
p_synchro
->
i_frame_rate
mtime_t
period
=
1000000
*
1001
/
p_synchro
->
i_frame_rate
*
i_current_rate
/
DEFAULT_RATE
;
*
i_current_rate
/
INPUT_RATE_DEFAULT
;
#if 0
#if 0
mtime_t now = mdate();
mtime_t now = mdate();
#endif
#endif
...
...
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