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
220b6c0f
Commit
220b6c0f
authored
Jun 02, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ninput: changed the way title and seekpoint work.
parent
828a35b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
12 deletions
+37
-12
include/ninput.h
include/ninput.h
+37
-12
No files found.
include/ninput.h
View file @
220b6c0f
...
...
@@ -61,41 +61,68 @@ static inline seekpoint_t *vlc_seekpoint_Duplicate( seekpoint_t *src )
typedef
struct
{
char
*
psz_name
;
vlc_bool_t
b_menu
;
/* Is it a menu or a normal entry */
int64_t
i_length
;
/* length if known, else 0 */
int
i_seekpoints
;
/* How many seekpoint, (0/1 has same meaning)*/
char
*
psz_name
;
int64_t
i_length
;
/* Length(microsecond) if known, else 0 */
int64_t
i_size
;
/* Size (bytes) if known, else 0 */
/* Title seekpoint */
int
i_seekpoint
;
seekpoint_t
**
seekpoint
;
}
input_title_t
;
static
inline
input_title_t
*
vlc_input_title_New
(
)
{
input_title_t
*
t
=
(
input_title_t
*
)
malloc
(
sizeof
(
input_title_t
)
);
t
->
psz_name
=
NULL
;
t
->
b_menu
=
VLC_FALSE
;
t
->
i_length
=
0
;
t
->
i_seekpoints
=
0
;
t
->
psz_name
=
NULL
;
t
->
i_size
=
0
;
t
->
i_seekpoint
=
0
;
t
->
seekpoint
=
NULL
;
return
t
;
}
static
inline
void
vlc_input_title_Delete
(
input_title_t
*
t
)
{
if
(
t
)
int
i
;
if
(
t
==
NULL
)
return
;
if
(
t
->
psz_name
)
free
(
t
->
psz_name
);
for
(
i
=
0
;
i
<
t
->
i_seekpoint
;
i
++
)
{
if
(
t
->
psz_name
)
free
(
t
->
psz_name
);
free
(
t
);
if
(
t
->
seekpoint
[
i
]
->
psz_name
)
free
(
t
->
seekpoint
[
i
]
->
psz_name
);
free
(
t
->
seekpoint
[
i
]
);
}
if
(
t
->
seekpoint
)
free
(
t
->
seekpoint
);
free
(
t
);
}
static
inline
input_title_t
*
vlc_input_title_Duplicate
(
input_title_t
*
t
)
{
input_title_t
*
dup
=
vlc_input_title_New
(
);
int
i
;
if
(
t
->
psz_name
)
dup
->
psz_name
=
strdup
(
t
->
psz_name
);
dup
->
b_menu
=
t
->
b_menu
;
dup
->
i_length
=
t
->
i_length
;
dup
->
i_seekpoints
=
t
->
i_seekpoints
;
if
(
t
->
psz_name
)
dup
->
psz_name
=
strdup
(
t
->
psz_name
);
dup
->
i_size
=
t
->
i_size
;
dup
->
i_seekpoint
=
t
->
i_seekpoint
;
if
(
t
->
i_seekpoint
>
0
)
{
dup
->
seekpoint
=
(
seekpoint_t
**
)
calloc
(
t
->
i_seekpoint
,
sizeof
(
seekpoint_t
*
)
);
for
(
i
=
0
;
i
<
t
->
i_seekpoint
;
i
++
)
{
dup
->
seekpoint
[
i
]
=
vlc_seekpoint_Duplicate
(
t
->
seekpoint
[
i
]
);
}
}
return
dup
;
}
...
...
@@ -203,7 +230,6 @@ enum access_query_e
ACCESS_GET_PTS_DELAY
,
/* arg1= int64_t* cannot fail */
/* */
ACCESS_GET_TITLE_INFO
,
/* arg1=input_title_t*** arg2=int* can fail */
ACCESS_GET_SEEKPOINT_INFO
,
/* arg1=seekpoint_t *** arg2=int* can fail */
/* */
ACCESS_SET_PAUSE_STATE
,
/* arg1= vlc_bool_t can fail */
...
...
@@ -477,7 +503,6 @@ enum demux_query_e
DEMUX_GET_META
,
/* arg1= vlc_meta_t ** res=can fail */
DEMUX_GET_TITLE_INFO
,
/* arg1=input_title_t*** arg2=int* can fail */
DEMUX_GET_SEEKPOINT_INFO
,
/* arg1=seekpoint_t *** arg2=int* can fail */
DEMUX_SET_TITLE
,
/* arg1= int can fail */
DEMUX_SET_SEEKPOINT
,
/* arg1= int can fail */
...
...
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