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
82e174bc
Commit
82e174bc
authored
May 30, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* access2: support for demuxer access provided.
* http: converted to access2.
parent
58cdead8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
211 additions
and
134 deletions
+211
-134
modules/access/access2.c
modules/access/access2.c
+16
-2
modules/access/http.c
modules/access/http.c
+195
-132
No files found.
modules/access/access2.c
View file @
82e174bc
...
...
@@ -37,9 +37,10 @@ static void Access2Close( vlc_object_t * );
vlc_module_begin
();
set_description
(
_
(
"Access2 adaptation layer"
)
);
set_capability
(
"access"
,
2
);
set_capability
(
"access"
,
0
);
set_callbacks
(
Access2Open
,
Access2Close
);
add_shortcut
(
"access2"
);
add_shortcut
(
"http"
);
/* Hack */
//add_shortcut( "file" );
...
...
@@ -110,6 +111,12 @@ static int Access2Open( vlc_object_t * p_this )
access2_Control
(
p_access
,
ACCESS_GET_PTS_DELAY
,
&
i_64
);
p_input
->
i_pts_delay
=
i_64
;
if
(
p_access
->
psz_demux
&&
*
p_access
->
psz_demux
)
{
if
(
!
p_input
->
psz_demux
||
*
p_input
->
psz_demux
==
'\0'
)
p_input
->
psz_demux
=
strdup
(
p_access
->
psz_demux
);
}
/* Init p_input->stream.* */
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
/* size */
...
...
@@ -219,7 +226,14 @@ static void Access2Seek( input_thread_t *p_input, off_t i_pos )
access_t
*
p_access
=
p_sys
->
p_access
;
if
(
p_access
->
pf_seek
!=
NULL
&&
p_input
->
stream
.
b_seekable
)
p_access
->
pf_seek
(
p_access
,
i_pos
);
{
if
(
p_access
->
pf_seek
(
p_access
,
i_pos
)
)
{
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
p_input
->
stream
.
p_selected_area
->
i_tell
=
i_pos
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
}
}
}
/*****************************************************************************
...
...
modules/access/http.c
View file @
82e174bc
This diff is collapsed.
Click to expand it.
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