Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e74490b3
Commit
e74490b3
authored
Aug 26, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: always pass meta data through demux (refs #8456)
parent
d2cd2e5d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
29 deletions
+10
-29
modules/access/http.c
modules/access/http.c
+1
-1
modules/demux/ps.c
modules/demux/ps.c
+3
-0
modules/demux/ts.c
modules/demux/ts.c
+3
-0
src/input/demux.c
src/input/demux.c
+3
-1
src/input/input.c
src/input/input.c
+0
-27
No files found.
modules/access/http.c
View file @
e74490b3
...
@@ -878,7 +878,7 @@ static int ReadICYMeta( access_t *p_access )
...
@@ -878,7 +878,7 @@ static int ReadICYMeta( access_t *p_access )
p_sys
->
psz_icy_title
=
EnsureUTF8
(
psz_tmp
);
p_sys
->
psz_icy_title
=
EnsureUTF8
(
psz_tmp
);
if
(
!
p_sys
->
psz_icy_title
)
if
(
!
p_sys
->
psz_icy_title
)
free
(
psz_tmp
);
free
(
psz_tmp
);
p_access
->
info
.
i_update
|=
INPUT_UPDATE_META
;
//p_access->info.i_update |= INPUT_UPDATE_META; FIXME
msg_Dbg
(
p_access
,
"New Title=%s"
,
p_sys
->
psz_icy_title
);
msg_Dbg
(
p_access
,
"New Title=%s"
,
p_sys
->
psz_icy_title
);
}
}
...
...
modules/demux/ps.c
View file @
e74490b3
...
@@ -530,6 +530,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -530,6 +530,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
}
}
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
case
DEMUX_GET_META
:
return
stream_Control
(
p_demux
->
s
,
STREAM_GET_META
,
args
);
case
DEMUX_GET_FPS
:
case
DEMUX_GET_FPS
:
default:
default:
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
modules/demux/ts.c
View file @
e74490b3
...
@@ -1189,6 +1189,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -1189,6 +1189,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
case
DEMUX_GET_META
:
return
stream_Control
(
p_demux
->
s
,
STREAM_GET_META
,
args
);
case
DEMUX_CAN_RECORD
:
case
DEMUX_CAN_RECORD
:
pb_bool
=
(
bool
*
)
va_arg
(
args
,
bool
*
);
pb_bool
=
(
bool
*
)
va_arg
(
args
,
bool
*
);
*
pb_bool
=
true
;
*
pb_bool
=
true
;
...
...
src/input/demux.c
View file @
e74490b3
...
@@ -307,9 +307,11 @@ int demux_vaControlHelper( stream_t *s,
...
@@ -307,9 +307,11 @@ int demux_vaControlHelper( stream_t *s,
}
}
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
case
DEMUX_GET_META
:
return
stream_Control
(
s
,
STREAM_GET_META
,
args
);
case
DEMUX_GET_PTS_DELAY
:
case
DEMUX_GET_PTS_DELAY
:
case
DEMUX_GET_FPS
:
case
DEMUX_GET_FPS
:
case
DEMUX_GET_META
:
case
DEMUX_HAS_UNSUPPORTED_META
:
case
DEMUX_HAS_UNSUPPORTED_META
:
case
DEMUX_SET_NEXT_DEMUX_TIME
:
case
DEMUX_SET_NEXT_DEMUX_TIME
:
case
DEMUX_GET_TITLE_INFO
:
case
DEMUX_GET_TITLE_INFO
:
...
...
src/input/input.c
View file @
e74490b3
...
@@ -76,7 +76,6 @@ static bool ControlIsSeekRequest( int i_type );
...
@@ -76,7 +76,6 @@ static bool ControlIsSeekRequest( int i_type );
static
bool
Control
(
input_thread_t
*
,
int
,
vlc_value_t
);
static
bool
Control
(
input_thread_t
*
,
int
,
vlc_value_t
);
static
int
UpdateTitleSeekpointFromAccess
(
input_thread_t
*
);
static
int
UpdateTitleSeekpointFromAccess
(
input_thread_t
*
);
static
void
UpdateGenericFromAccess
(
input_thread_t
*
);
static
int
UpdateTitleSeekpointFromDemux
(
input_thread_t
*
);
static
int
UpdateTitleSeekpointFromDemux
(
input_thread_t
*
);
static
void
UpdateGenericFromDemux
(
input_thread_t
*
);
static
void
UpdateGenericFromDemux
(
input_thread_t
*
);
...
@@ -584,7 +583,6 @@ static void MainLoopDemux( input_thread_t *p_input, bool *pb_changed, bool *pb_d
...
@@ -584,7 +583,6 @@ static void MainLoopDemux( input_thread_t *p_input, bool *pb_changed, bool *pb_d
i_ret
=
UpdateTitleSeekpointFromAccess
(
p_input
);
i_ret
=
UpdateTitleSeekpointFromAccess
(
p_input
);
*
pb_changed
=
true
;
*
pb_changed
=
true
;
}
}
UpdateGenericFromAccess
(
p_input
);
}
}
}
}
...
@@ -2026,9 +2024,6 @@ static bool Control( input_thread_t *p_input,
...
@@ -2026,9 +2024,6 @@ static bool Control( input_thread_t *p_input,
p_meta
=
vlc_meta_New
();
p_meta
=
vlc_meta_New
();
if
(
p_meta
)
if
(
p_meta
)
{
{
if
(
slave
->
p_stream
!=
NULL
)
stream_Control
(
slave
->
p_stream
,
STREAM_GET_META
,
p_meta
);
demux_Control
(
slave
->
p_demux
,
DEMUX_GET_META
,
p_meta
);
demux_Control
(
slave
->
p_demux
,
DEMUX_GET_META
,
p_meta
);
InputUpdateMeta
(
p_input
,
p_meta
);
InputUpdateMeta
(
p_input
,
p_meta
);
}
}
...
@@ -2275,23 +2270,6 @@ static int UpdateTitleSeekpointFromAccess( input_thread_t *p_input )
...
@@ -2275,23 +2270,6 @@ static int UpdateTitleSeekpointFromAccess( input_thread_t *p_input )
p_access
->
info
.
i_seekpoint
);
p_access
->
info
.
i_seekpoint
);
return
1
;
return
1
;
}
}
static
void
UpdateGenericFromAccess
(
input_thread_t
*
p_input
)
{
stream_t
*
p_stream
=
p_input
->
p
->
input
.
p_stream
;
access_t
*
p_access
=
p_input
->
p
->
input
.
p_access
;
if
(
p_access
->
info
.
i_update
&
INPUT_UPDATE_META
)
{
/* TODO maybe multi - access ? */
vlc_meta_t
*
p_meta
=
vlc_meta_New
();
if
(
p_meta
)
{
stream_Control
(
p_stream
,
STREAM_GET_META
,
p_meta
);
InputUpdateMeta
(
p_input
,
p_meta
);
}
p_access
->
info
.
i_update
&=
~
INPUT_UPDATE_META
;
}
}
/*****************************************************************************
/*****************************************************************************
* InputSourceNew:
* InputSourceNew:
...
@@ -2666,11 +2644,6 @@ static void InputSourceMeta( input_thread_t *p_input,
...
@@ -2666,11 +2644,6 @@ static void InputSourceMeta( input_thread_t *p_input,
bool
has_meta
=
false
;
bool
has_meta
=
false
;
/* Read access meta */
if
(
p_stream
!=
NULL
&&
!
stream_Control
(
p_stream
,
STREAM_GET_META
,
p_meta
)
)
has_meta
=
true
;
/* Read demux meta */
/* Read demux meta */
if
(
!
demux_Control
(
p_demux
,
DEMUX_GET_META
,
p_meta
)
)
if
(
!
demux_Control
(
p_demux
,
DEMUX_GET_META
,
p_meta
)
)
has_meta
=
true
;
has_meta
=
true
;
...
...
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