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
43f58feb
Commit
43f58feb
authored
May 09, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not leak psz_demux
parent
2c73e8cf
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
5 deletions
+33
-5
modules/access/directory.c
modules/access/directory.c
+1
-0
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+3
-1
modules/access/dv.c
modules/access/dv.c
+7
-2
modules/access/http.c
modules/access/http.c
+17
-2
modules/access/udp.c
modules/access/udp.c
+3
-0
modules/access/vcd/vcd.c
modules/access/vcd/vcd.c
+1
-0
modules/access/vcdx/access.c
modules/access/vcdx/access.c
+1
-0
No files found.
modules/access/directory.c
View file @
43f58feb
...
@@ -166,6 +166,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -166,6 +166,7 @@ static int Open( vlc_object_t *p_this )
p_access
->
pf_control
=
Control
;
p_access
->
pf_control
=
Control
;
/* Force a demux */
/* Force a demux */
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"directory"
);
p_access
->
psz_demux
=
strdup
(
"directory"
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
modules/access/dshow/dshow.cpp
View file @
43f58feb
...
@@ -657,11 +657,13 @@ static int AccessOpen( vlc_object_t *p_this )
...
@@ -657,11 +657,13 @@ static int AccessOpen( vlc_object_t *p_this )
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'd'
,
'v'
,
's'
,
'd'
)
||
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'd'
,
'v'
,
's'
,
'd'
)
||
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'd'
,
'v'
,
'h'
,
'd'
)
)
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'd'
,
'v'
,
'h'
,
'd'
)
)
{
{
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"rawdv"
);
p_access
->
psz_demux
=
strdup
(
"rawdv"
);
}
}
else
if
(
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'm'
,
'p'
,
'2'
,
'v'
)
)
else
if
(
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'm'
,
'p'
,
'2'
,
'v'
)
)
{
{
p_access
->
psz_demux
=
"mpgv"
;
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"mpgv"
);
}
}
}
}
...
...
modules/access/dv.c
View file @
43f58feb
...
@@ -340,8 +340,13 @@ static block_t *Block( access_t *p_access )
...
@@ -340,8 +340,13 @@ static block_t *Block( access_t *p_access )
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
block_t
*
p_block
=
NULL
;
block_t
*
p_block
=
NULL
;
// if( !p_access->psz_demux )
#if 0
// p_access->psz_demux = strdup( "rawdv" );
if( !p_access->psz_demux )
{
free( p_access->psz_demux );
p_access->psz_demux = strdup( "rawdv" );
}
#endif
vlc_mutex_lock
(
&
p_sys
->
lock
);
vlc_mutex_lock
(
&
p_sys
->
lock
);
p_block
=
p_sys
->
p_frame
;
p_block
=
p_sys
->
p_frame
;
...
...
modules/access/http.c
View file @
43f58feb
...
@@ -454,12 +454,21 @@ connect:
...
@@ -454,12 +454,21 @@ connect:
{
{
if
(
!
strcasecmp
(
p_sys
->
psz_mime
,
"video/nsv"
)
||
if
(
!
strcasecmp
(
p_sys
->
psz_mime
,
"video/nsv"
)
||
!
strcasecmp
(
p_sys
->
psz_mime
,
"video/nsa"
)
)
!
strcasecmp
(
p_sys
->
psz_mime
,
"video/nsa"
)
)
{
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"nsv"
);
p_access
->
psz_demux
=
strdup
(
"nsv"
);
}
else
if
(
!
strcasecmp
(
p_sys
->
psz_mime
,
"audio/aac"
)
||
else
if
(
!
strcasecmp
(
p_sys
->
psz_mime
,
"audio/aac"
)
||
!
strcasecmp
(
p_sys
->
psz_mime
,
"audio/aacp"
)
)
!
strcasecmp
(
p_sys
->
psz_mime
,
"audio/aacp"
)
)
{
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"m4a"
);
p_access
->
psz_demux
=
strdup
(
"m4a"
);
}
else
if
(
!
strcasecmp
(
p_sys
->
psz_mime
,
"audio/mpeg"
)
)
else
if
(
!
strcasecmp
(
p_sys
->
psz_mime
,
"audio/mpeg"
)
)
{
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"mp3"
);
p_access
->
psz_demux
=
strdup
(
"mp3"
);
}
msg_Info
(
p_access
,
"Raw-audio server found, %s demuxer selected"
,
msg_Info
(
p_access
,
"Raw-audio server found, %s demuxer selected"
,
p_access
->
psz_demux
);
p_access
->
psz_demux
);
...
@@ -472,6 +481,7 @@ connect:
...
@@ -472,6 +481,7 @@ connect:
}
}
else
if
(
!
p_sys
->
psz_mime
)
else
if
(
!
p_sys
->
psz_mime
)
{
{
free
(
p_access
->
psz_demux
);
/* Shoutcast */
/* Shoutcast */
p_access
->
psz_demux
=
strdup
(
"mp3"
);
p_access
->
psz_demux
=
strdup
(
"mp3"
);
}
}
...
@@ -481,17 +491,22 @@ connect:
...
@@ -481,17 +491,22 @@ connect:
p_sys
->
psz_mime
&&
p_sys
->
psz_mime
&&
!
strcasecmp
(
p_sys
->
psz_mime
,
"misc/ultravox"
)
)
!
strcasecmp
(
p_sys
->
psz_mime
,
"misc/ultravox"
)
)
{
{
free
(
p_access
->
psz_demux
);
/* Grrrr! detect ultravox server and force NSV demuxer */
/* Grrrr! detect ultravox server and force NSV demuxer */
p_access
->
psz_demux
=
strdup
(
"nsv"
);
p_access
->
psz_demux
=
strdup
(
"nsv"
);
}
}
else
if
(
!
strcmp
(
p_access
->
psz_access
,
"itpc"
)
)
else
if
(
!
strcmp
(
p_access
->
psz_access
,
"itpc"
)
)
{
{
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"podcast"
);
p_access
->
psz_demux
=
strdup
(
"podcast"
);
}
}
else
if
(
p_sys
->
psz_mime
&&
else
if
(
p_sys
->
psz_mime
&&
!
strncasecmp
(
p_sys
->
psz_mime
,
"application/xspf+xml"
,
20
)
&&
!
strncasecmp
(
p_sys
->
psz_mime
,
"application/xspf+xml"
,
20
)
&&
(
memchr
(
" ;
\t
"
,
p_sys
->
psz_mime
[
20
],
4
)
!=
NULL
)
)
(
memchr
(
" ;
\t
"
,
p_sys
->
psz_mime
[
20
],
4
)
!=
NULL
)
)
{
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"xspf-open"
);
p_access
->
psz_demux
=
strdup
(
"xspf-open"
);
}
if
(
p_sys
->
b_reconnect
)
msg_Dbg
(
p_access
,
"auto re-connect enabled"
);
if
(
p_sys
->
b_reconnect
)
msg_Dbg
(
p_access
,
"auto re-connect enabled"
);
...
...
modules/access/udp.c
View file @
43f58feb
...
@@ -743,16 +743,19 @@ static block_t *BlockChoose( access_t *p_access )
...
@@ -743,16 +743,19 @@ static block_t *BlockChoose( access_t *p_access )
{
{
case
33
:
case
33
:
msg_Dbg
(
p_access
,
"detected MPEG2 TS over RTP"
);
msg_Dbg
(
p_access
,
"detected MPEG2 TS over RTP"
);
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"ts"
);
p_access
->
psz_demux
=
strdup
(
"ts"
);
break
;
break
;
case
14
:
case
14
:
msg_Dbg
(
p_access
,
"detected MPEG Audio over RTP"
);
msg_Dbg
(
p_access
,
"detected MPEG Audio over RTP"
);
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"mpga"
);
p_access
->
psz_demux
=
strdup
(
"mpga"
);
break
;
break
;
case
32
:
case
32
:
msg_Dbg
(
p_access
,
"detected MPEG Video over RTP"
);
msg_Dbg
(
p_access
,
"detected MPEG Video over RTP"
);
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"mpgv"
);
p_access
->
psz_demux
=
strdup
(
"mpgv"
);
break
;
break
;
...
...
modules/access/vcd/vcd.c
View file @
43f58feb
...
@@ -211,6 +211,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -211,6 +211,7 @@ static int Open( vlc_object_t *p_this )
p_access
->
info
.
i_pos
=
(
p_sys
->
i_sector
-
p_sys
->
p_sectors
[
1
+
i_title
]
)
*
p_access
->
info
.
i_pos
=
(
p_sys
->
i_sector
-
p_sys
->
p_sectors
[
1
+
i_title
]
)
*
VCD_DATA_SIZE
;
VCD_DATA_SIZE
;
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"ps"
);
p_access
->
psz_demux
=
strdup
(
"ps"
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
modules/access/vcdx/access.c
View file @
43f58feb
...
@@ -957,6 +957,7 @@ VCDOpen ( vlc_object_t *p_this )
...
@@ -957,6 +957,7 @@ VCDOpen ( vlc_object_t *p_this )
vcdplayer_play
(
p_access
,
itemid
);
vcdplayer_play
(
p_access
,
itemid
);
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"ps"
);
p_access
->
psz_demux
=
strdup
(
"ps"
);
#if FIXED
#if FIXED
...
...
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