Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
6f02f88b
Commit
6f02f88b
authored
Jan 27, 2009
by
Jean-Philippe Andre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zip: don't use hacks but rewrite the path.
+ remove MTU + fix copyright Thanks a lot fenrir for this psz_path
parent
d7c28d52
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
36 deletions
+10
-36
modules/access/zip/zip.h
modules/access/zip/zip.h
+2
-2
modules/access/zip/zipaccess.c
modules/access/zip/zipaccess.c
+1
-9
modules/access/zip/zipstream.c
modules/access/zip/zipstream.c
+7
-25
No files found.
modules/access/zip/zip.h
View file @
6f02f88b
/*****************************************************************************
* zip.h: Module (access+
demux
) to extract different archives, based on zlib
* zip.h: Module (access+
filter
) to extract different archives, based on zlib
*****************************************************************************
* Copyright (C) 200
7
the VideoLAN team
* Copyright (C) 200
9
the VideoLAN team
* $Id$
*
* Authors: Jean-Philippe André <jpeg@videolan.org>
...
...
modules/access/zip/zipaccess.c
View file @
6f02f88b
/*****************************************************************************
* zipaccess.c: Module (access) to extract different archives, based on zlib
*****************************************************************************
* Copyright (C) 200
7
the VideoLAN team
* Copyright (C) 200
9
the VideoLAN team
* $Id$
*
* Authors: Jean-Philippe André <jpeg@videolan.org>
...
...
@@ -155,7 +155,6 @@ void AccessClose( vlc_object_t *p_this )
free
(
p_sys
->
fileFunctions
);
free
(
p_sys
);
}
var_Destroy
(
p_access
,
"zip-no-xspf"
);
}
/** **************************************************************************
...
...
@@ -164,7 +163,6 @@ void AccessClose( vlc_object_t *p_this )
static
int
AccessControl
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
{
bool
*
pb_bool
;
int
*
pi_int
;
int64_t
*
pi_64
;
switch
(
i_query
)
...
...
@@ -182,12 +180,6 @@ static int AccessControl( access_t *p_access, int i_query, va_list args )
*
pb_bool
=
false
;
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
DEFAULT_PTS_DELAY
;
...
...
modules/access/zip/zipstream.c
View file @
6f02f88b
/*****************************************************************************
* zipstream.c: stream_filter that creates a XSPF playlist from a Zip archive
*****************************************************************************
* Copyright (C) 200
7
the VideoLAN team
* Copyright (C) 200
9
the VideoLAN team
* $Id$
*
* Authors: Jean-Philippe André <jpeg@videolan.org>
...
...
@@ -51,7 +51,7 @@ vlc_module_begin()
add_submodule
()
set_subcategory
(
SUBCAT_INPUT_ACCESS
)
set_description
(
_
(
"Zip access"
)
)
set_capability
(
"access"
,
7
0
)
set_capability
(
"access"
,
0
)
add_shortcut
(
"unzip"
)
add_shortcut
(
"zip"
)
set_callbacks
(
AccessOpen
,
AccessClose
)
...
...
@@ -211,26 +211,15 @@ int StreamOpen( vlc_object_t *p_this )
}
/* Find the stream uri */
/* FIXME FIXME FIXME */
input_thread_t
*
p_input_thread
=
(
input_thread_t
*
)
vlc_object_find
(
p_this
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
if
(
!
p_input_thread
)
{
free
(
p_sys
);
free
(
p_sys
->
fileFunctions
);
return
VLC_EGENERIC
;
}
input_item_t
*
p_input_item
=
input_GetItem
(
p_input_thread
);
if
(
!
p_input_item
)
char
*
psz_tmp
;
if
(
asprintf
(
&
psz_tmp
,
"%s.xspf"
,
s
->
psz_path
)
==
-
1
)
{
free
(
p_sys
);
free
(
p_sys
->
fileFunctions
);
return
VLC_E
GENERIC
;
return
VLC_E
NOMEM
;
}
s
->
p_sys
->
psz_path
=
strdup
(
p_input_item
->
psz_uri
);
vlc_gc_decref
(
p_input_item
);
// vlc_object_release( p_input_thread );
/* FIXME FIXME FIXME */
p_sys
->
psz_path
=
s
->
psz_path
;
s
->
psz_path
=
psz_tmp
;
return
VLC_SUCCESS
;
}
...
...
@@ -340,13 +329,6 @@ static int Control( stream_t *s, int i_query, va_list args )
return
VLC_SUCCESS
;
}
case
STREAM_GET_MTU
:
{
int
*
pi_mtu
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_mtu
=
0
;
return
VLC_SUCCESS
;
}
case
STREAM_GET_CONTENT_TYPE
:
return
VLC_EGENERIC
;
...
...
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