Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5d837145
Commit
5d837145
authored
Aug 08, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PulseAudio: set the media role on streams (fixes #5101)
parent
7d19f1dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+7
-9
No files found.
modules/audio_output/pulse.c
View file @
5d837145
...
...
@@ -50,14 +50,6 @@ vlc_module_begin ()
set_callbacks
(
Open
,
Close
)
vlc_module_end
()
/* TODO:
* - pause input on policy event
* - resample to compensate for long term drift
* - select music or video stream property correctly (?)
* - set further appropriate stream properties
* - update output devices list dynamically
*/
/* NOTE:
* Be careful what you do when the PulseAudio mainloop is held, which is to say
* within PulseAudio callbacks, or after pa_threaded_mainloop_lock().
...
...
@@ -888,9 +880,15 @@ static int Open(vlc_object_t *obj)
/* Create a playback stream */
pa_stream
*
s
;
pa_proplist
*
props
=
pa_proplist_new
();
if
(
likely
(
props
!=
NULL
))
/* TODO: set other stream properties */
pa_proplist_sets
(
props
,
PA_PROP_MEDIA_ROLE
,
"video"
);
pa_threaded_mainloop_lock
(
sys
->
mainloop
);
s
=
pa_stream_new_extended
(
ctx
,
"audio stream"
,
formatv
,
formatc
,
NULL
);
s
=
pa_stream_new_extended
(
ctx
,
"audio stream"
,
formatv
,
formatc
,
props
);
if
(
likely
(
props
!=
NULL
))
pa_proplist_free
(
props
);
for
(
unsigned
i
=
0
;
i
<
formatc
;
i
++
)
pa_format_info_free
(
formatv
[
i
]);
...
...
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