demux_New is called twice in InputSourceInit

This forum is about all development around libVLC.
busybeeCS
Blank Cone
Blank Cone
Posts: 37
Joined: 24 Aug 2013 08:06

demux_New is called twice in InputSourceInit

Postby busybeeCS » 03 Sep 2013 13:21

the function demux_New is called twice in InputSourceInit ,can anybody explain me why?
why does it return NULL when called the first time?

diman23
Blank Cone
Blank Cone
Posts: 14
Joined: 23 Aug 2013 00:26
VLC version: 2.0.0
Operating System: win7 / linux
Location: Germany

Re: demux_New is called twice in InputSourceInit

Postby diman23 » 03 Sep 2013 14:51

no guaranty but I think that:
vlc first tries to open an access_demuxer if it fails, than it opens an acces module first, and then it opens a demuxer (this is the second time demux_New is called)

busybeeCS
Blank Cone
Blank Cone
Posts: 37
Joined: 24 Aug 2013 08:06

Re: demux_New is called twice in InputSourceInit

Postby busybeeCS » 05 Sep 2013 16:03

no guaranty but i think that:
vlc first tries to open an access_demuxer if it fails, than it opens an acces module first, and then it opens a demuxer (this is the second time demux_New is called)
then what is the access_demuxer ?
what is the difference between access_demuxer and access or demux?

diman23
Blank Cone
Blank Cone
Posts: 14
Joined: 23 Aug 2013 00:26
VLC version: 2.0.0
Operating System: win7 / linux
Location: Germany

Re: demux_New is called twice in InputSourceInit

Postby diman23 » 05 Sep 2013 16:37

access_demux module is an acces AND a demux 2 in 1
https://wiki.videolan.org/Hacker_Guide/Access_Demux/

e.g. in access_demux you can open a file on your own demultiplex it and send information to a decoder.
in a simple demux module you need to read from elementary stream (stream_Read) and in an access only you have to put this information to ELstream


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests