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
064023b0
Commit
064023b0
authored
Dec 14, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make input_Read return the input object id
parent
34b42b0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
include/vlc_input.h
include/vlc_input.h
+2
-2
src/input/input.c
src/input/input.c
+4
-1
No files found.
include/vlc_input.h
View file @
064023b0
...
...
@@ -2,7 +2,7 @@
* vlc_input.h:
*****************************************************************************
* Copyright (C) 1999-2004 the VideoLAN team
* $Id
: input_ext-intf.h 7954 2004-06-07 22:19:12Z fenrir
$
* $Id$
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Laurent Aimar <fenrir@via.ecp.fr>
...
...
@@ -413,7 +413,7 @@ VLC_EXPORT( input_thread_t *, __input_CreateThread, ( vlc_object_t *, input_item
VLC_EXPORT
(
int
,
__input_Preparse
,
(
vlc_object_t
*
,
input_item_t
*
)
);
#define input_Read(a,b,c) __input_Read(VLC_OBJECT(a),b, c)
VLC_EXPORT
(
void
,
__input_Read
,
(
vlc_object_t
*
,
input_item_t
*
,
vlc_bool_t
)
);
VLC_EXPORT
(
int
,
__input_Read
,
(
vlc_object_t
*
,
input_item_t
*
,
vlc_bool_t
)
);
VLC_EXPORT
(
void
,
input_StopThread
,
(
input_thread_t
*
)
);
VLC_EXPORT
(
void
,
input_DestroyThread
,
(
input_thread_t
*
)
);
...
...
src/input/input.c
View file @
064023b0
...
...
@@ -266,8 +266,9 @@ input_thread_t *__input_CreateThread( vlc_object_t *p_parent,
* \param p_parent a vlc_object
* \param p_item an input item
* \param b_block should we block until read is finished ?
* \return the input object id if non blocking, 0 else
*/
void
__input_Read
(
vlc_object_t
*
p_parent
,
input_item_t
*
p_item
,
int
__input_Read
(
vlc_object_t
*
p_parent
,
input_item_t
*
p_item
,
vlc_bool_t
b_block
)
{
input_thread_t
*
p_input
;
/* thread descriptor */
...
...
@@ -279,6 +280,7 @@ void __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
if
(
b_block
)
{
RunAndClean
(
p_input
);
return
0
;
}
else
{
...
...
@@ -291,6 +293,7 @@ void __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
return
;
}
}
return
p_input
->
i_object_id
;
}
/**
...
...
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