Changeset 47d4e675cc4eeeb24e02b97ef8cbe8baf39fc3ca
- Timestamp:
- 07/10/05 00:09:24
(3 years ago)
- Author:
- Laurent Aimar <fenrir@videolan.org>
- git-committer:
- Laurent Aimar <fenrir@videolan.org> 1128636564 +0000
- git-parent:
[d4c07f8d566f766845c01ec7dd51032b4267ab7e]
- git-author:
- Laurent Aimar <fenrir@videolan.org> 1128636564 +0000
- Message:
- input: :demux=module really force module and bypass demuxer module given
by access.
- udp: force ts demux on payload 33 (:demux=dump will work)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd4c07f8 |
r47d4e67 |
|
| 457 | 457 | case 33: |
|---|
| 458 | 458 | msg_Dbg( p_access, "detected TS over RTP" ); |
|---|
| 459 | | /* Disabled because it is auto-detected. */ |
|---|
| 460 | | /* p_access->psz_demux = strdup( "ts" ); */ |
|---|
| | 459 | p_access->psz_demux = strdup( "ts" ); |
|---|
| 461 | 460 | break; |
|---|
| 462 | 461 | |
|---|
| r331ee33 |
r47d4e67 |
|
| 1925 | 1925 | |
|---|
| 1926 | 1926 | if( !in ) return VLC_EGENERIC; |
|---|
| 1927 | | |
|---|
| | 1927 | |
|---|
| 1928 | 1928 | /* Split uri */ |
|---|
| 1929 | 1929 | if( !b_quick ) |
|---|
| … | … | |
| 1945 | 1945 | |
|---|
| 1946 | 1946 | if( psz_forced_demux && *psz_forced_demux ) |
|---|
| | 1947 | { |
|---|
| | 1948 | if( psz_demux ) free( psz_demux ); |
|---|
| 1947 | 1949 | psz_demux = psz_forced_demux; |
|---|
| | 1950 | } |
|---|
| | 1951 | else if( !psz_demux || *psz_demux == '\0' ) |
|---|
| | 1952 | { |
|---|
| | 1953 | /* special hack for forcing a demuxer with --demux=module |
|---|
| | 1954 | * (and do nothing with a list) */ |
|---|
| | 1955 | char *psz_var_demux = var_GetString( p_input, "demux" ); |
|---|
| | 1956 | |
|---|
| | 1957 | if( *psz_var_demux != '\0' && |
|---|
| | 1958 | !strchr(psz_var_demux, ',' ) && |
|---|
| | 1959 | !strchr(psz_var_demux, ':' ) ) |
|---|
| | 1960 | { |
|---|
| | 1961 | psz_demux = psz_var_demux; |
|---|
| | 1962 | |
|---|
| | 1963 | msg_Dbg( p_input, "Enforce demux ` %s'", psz_demux ); |
|---|
| | 1964 | } |
|---|
| | 1965 | else if( psz_var_demux ) |
|---|
| | 1966 | { |
|---|
| | 1967 | free( psz_var_demux ); |
|---|
| | 1968 | } |
|---|
| | 1969 | } |
|---|
| 1948 | 1970 | |
|---|
| 1949 | 1971 | /* Try access_demux if no demux given */ |
|---|