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
a974cde3
Commit
a974cde3
authored
Nov 13, 2004
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Support Kasenna simulcast. Weird stuff is still happening though with the image.
parent
d0b1c5d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
8 deletions
+41
-8
modules/demux/sgimb.c
modules/demux/sgimb.c
+41
-8
No files found.
modules/demux/sgimb.c
View file @
a974cde3
...
...
@@ -135,6 +135,7 @@ struct demux_sys_t
mtime_t
i_duration
;
/* sgiDuration= */
int
i_port
;
/* sgiRtspPort= */
int
i_sid
;
/* sgiSid= */
vlc_bool_t
b_concert
;
/* DeliveryService=cds */
vlc_bool_t
b_rtsp_kasenna
;
/* kasenna style RTSP */
};
...
...
@@ -180,7 +181,9 @@ static int Activate( vlc_object_t * p_this )
p_sys
->
i_packet_size
=
0
;
p_sys
->
i_duration
=
0
;
p_sys
->
i_port
=
0
;
p_sys
->
i_sid
=
0
;
p_sys
->
b_rtsp_kasenna
=
VLC_FALSE
;
p_sys
->
b_concert
=
VLC_FALSE
;
return
VLC_SUCCESS
;
}
...
...
@@ -303,7 +306,17 @@ static int ParseLine ( demux_t *p_demux, char *psz_line )
{
psz_bol
+=
sizeof
(
"sgiRtspPort="
)
-
1
;
p_sys
->
i_port
=
(
int
)
strtol
(
psz_bol
,
NULL
,
0
);
}
else
}
else
if
(
!
strncasecmp
(
psz_bol
,
"sgiSid="
,
sizeof
(
"sgiSid="
)
-
1
)
)
{
psz_bol
+=
sizeof
(
"sgiSid="
)
-
1
;
p_sys
->
i_sid
=
(
int
)
strtol
(
psz_bol
,
NULL
,
0
);
}
else
if
(
!
strncasecmp
(
psz_bol
,
"DeliveryService=cds"
,
sizeof
(
"DeliveryService=cds"
)
-
1
)
)
{
p_sys
->
b_concert
=
VLC_TRUE
;
}
else
{
/* This line isn't really important */
return
0
;
...
...
@@ -344,23 +357,23 @@ static int Demux ( demux_t *p_demux )
if
(
p_sys
->
psz_mcast_ip
)
{
/* Definetly schedules multicast session */
/* We don't care if it's live or not */
char
*
temp
;
temp
=
(
char
*
)
malloc
(
sizeof
(
"udp://@000.000.000.000:123456789"
)
);
sprintf
(
temp
,
"udp://@"
"%s:%i"
,
p_sys
->
psz_mcast_ip
,
p_sys
->
i_mcast_port
);
asprintf
(
&
temp
,
"udp://@"
"%s:%i"
,
p_sys
->
psz_mcast_ip
,
p_sys
->
i_mcast_port
);
if
(
p_sys
->
psz_uri
)
free
(
p_sys
->
psz_uri
);
p_sys
->
psz_uri
=
strdup
(
temp
);
free
(
temp
);
}
else
if
(
p_sys
->
psz_uri
==
NULL
)
if
(
p_sys
->
psz_uri
==
NULL
)
{
if
(
p_sys
->
psz_server
&&
p_sys
->
psz_location
)
{
char
*
temp
;
temp
=
(
char
*
)
malloc
(
sizeof
(
"rtsp://"
":"
"123456789"
)
+
strlen
(
p_sys
->
psz_server
)
+
strlen
(
p_sys
->
psz_location
)
);
sprintf
(
temp
,
"rtsp://"
"%s:%i%s"
,
asprintf
(
&
temp
,
"rtsp://"
"%s:%i%s"
,
p_sys
->
psz_server
,
p_sys
->
i_port
>
0
?
p_sys
->
i_port
:
554
,
p_sys
->
psz_location
);
p_sys
->
psz_uri
=
strdup
(
temp
);
...
...
@@ -368,6 +381,26 @@ static int Demux ( demux_t *p_demux )
}
}
if
(
p_sys
->
b_concert
)
{
/* It's definetly a simulcasted scheduled stream */
/* We don't care if it's live or not */
char
*
temp
;
if
(
p_sys
->
psz_uri
==
NULL
)
{
msg_Err
(
p_demux
,
"no URI was found"
);
return
-
1
;
}
asprintf
(
&
temp
,
"%s%%3FMeDiAbAsEshowingId=%d%%26MeDiAbAsEconcert%%3FMeDiAbAsE"
,
p_sys
->
psz_uri
,
p_sys
->
i_sid
);
free
(
p_sys
->
psz_uri
);
p_sys
->
psz_uri
=
strdup
(
temp
);
free
(
temp
);
}
p_item
=
playlist_ItemNew
(
p_playlist
,
p_sys
->
psz_uri
,
p_sys
->
psz_name
?
p_sys
->
psz_name
:
p_sys
->
psz_uri
);
...
...
@@ -388,7 +421,7 @@ static int Demux ( demux_t *p_demux )
if
(
!
p_sys
->
psz_mcast_ip
)
{
char
*
psz_option
;
asprintf
(
&
psz_option
,
"rtsp-caching=
10
000"
);
asprintf
(
&
psz_option
,
"rtsp-caching=
5
000"
);
playlist_ItemAddOption
(
p_item
,
psz_option
);
free
(
psz_option
);
}
...
...
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