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
29b825c3
Commit
29b825c3
authored
Feb 26, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* compilation fixes...
parent
96347da3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
5 deletions
+22
-5
python/vlcmodule.c
python/vlcmodule.c
+15
-4
python/vlrs/announce.py
python/vlrs/announce.py
+4
-0
python/vlrs/streamer.py
python/vlrs/streamer.py
+3
-1
No files found.
python/vlcmodule.c
View file @
29b825c3
...
@@ -17,15 +17,25 @@ static PyObject *vlc_create(PyObject *self, PyObject *args)
...
@@ -17,15 +17,25 @@ static PyObject *vlc_create(PyObject *self, PyObject *args)
static
PyObject
*
vlc_init
(
PyObject
*
self
,
PyObject
*
args
)
static
PyObject
*
vlc_init
(
PyObject
*
self
,
PyObject
*
args
)
{
{
int
iVlc
;
int
iVlc
;
char
*
file
;
char
*
pArgv
[]
=
{
"vlc"
,
"--sout"
,
NULL
};
char
*
pArgv
[]
=
{
"vlc"
,
"--sout"
,
NULL
};
int
iRc
;
int
iRc
;
if
(
!
PyArg_ParseTuple
(
args
,
"iss"
,
&
iVlc
,
&
file
,
&
pArgv
[
2
]))
if
(
!
PyArg_ParseTuple
(
args
,
"iss"
,
&
iVlc
,
&
pArgv
[
2
]))
return
NULL
;
return
NULL
;
iRc
=
VLC_Init
(
iVlc
,
3
,
pArgv
);
iRc
=
VLC_Init
(
iVlc
,
3
,
pArgv
);
if
(
iRc
>=
0
)
return
Py_BuildValue
(
"i"
,
iRc
);
iRc
=
VLC_AddTarget
(
iVlc
,
file
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
}
static
PyObject
*
vlc_addTarget
(
PyObject
*
self
,
PyObject
*
args
)
{
int
iVlc
;
char
*
file
;
int
iRc
;
if
(
!
PyArg_ParseTuple
(
args
,
"is"
,
&
iVlc
,
&
file
))
return
NULL
;
iRc
=
VLC_AddTarget
(
iVlc
,
file
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
return
Py_BuildValue
(
"i"
,
iRc
);
return
Py_BuildValue
(
"i"
,
iRc
);
}
}
...
@@ -69,6 +79,7 @@ static PyObject *vlc_pause(PyObject *self, PyObject *args)
...
@@ -69,6 +79,7 @@ static PyObject *vlc_pause(PyObject *self, PyObject *args)
static
PyMethodDef
VlcMethods
[]
=
{
static
PyMethodDef
VlcMethods
[]
=
{
{
"create"
,
vlc_create
,
METH_VARARGS
,
"Create a vlc thread."
},
{
"create"
,
vlc_create
,
METH_VARARGS
,
"Create a vlc thread."
},
{
"init"
,
vlc_init
,
METH_VARARGS
,
"Initialize a vlc thread."
},
{
"init"
,
vlc_init
,
METH_VARARGS
,
"Initialize a vlc thread."
},
{
"addTarget"
,
vlc_addTarget
,
METH_VARARGS
,
"Add a target in the playlist."
},
{
"play"
,
vlc_play
,
METH_VARARGS
,
"Play"
},
{
"play"
,
vlc_play
,
METH_VARARGS
,
"Play"
},
{
"stop"
,
vlc_stop
,
METH_VARARGS
,
"Stop"
},
{
"stop"
,
vlc_stop
,
METH_VARARGS
,
"Stop"
},
{
"pause"
,
vlc_pause
,
METH_VARARGS
,
"Pause"
},
{
"pause"
,
vlc_pause
,
METH_VARARGS
,
"Pause"
},
...
...
python/vlrs/announce.py
View file @
29b825c3
...
@@ -25,3 +25,7 @@ class AnnounceList:
...
@@ -25,3 +25,7 @@ class AnnounceList:
def
addMulticastSession
(
self
,
session
):
def
addMulticastSession
(
self
,
session
):
"Add a multicast session in the announce list"
"Add a multicast session in the announce list"
self
.
multicastList
[
session
.
id
]
=
session
self
.
multicastList
[
session
.
id
]
=
session
def
delMulticastSession
(
self
,
session
):
"Delete a multicast session from the announce list"
del
self
.
multicastList
[
session
.
id
]
python/vlrs/streamer.py
View file @
29b825c3
...
@@ -23,7 +23,9 @@ class VlcStreamer:
...
@@ -23,7 +23,9 @@ class VlcStreamer:
self
.
id
=
vlc
.
create
()
self
.
id
=
vlc
.
create
()
if
self
.
id
<
0
:
if
self
.
id
<
0
:
raise
VlcError
raise
VlcError
if
vlc
.
init
(
self
.
id
,
self
.
file
,
self
.
address
)
<
0
:
if
vlc
.
init
(
self
.
id
,
self
.
address
)
<
0
:
raise
VlcError
if
vlc
.
addTarget
(
self
.
id
,
self
.
file
)
<
0
:
raise
VlcError
raise
VlcError
def
play
(
self
):
def
play
(
self
):
...
...
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