Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
mediastreamer2
Commits
8e0904bd
Commit
8e0904bd
authored
5 months ago
by
Sylvain Berfini
Browse files
Options
Download
Patches
Plain Diff
Added ms_snd_card_set_name(), only to be used in detect() method
parent
c8562cd8
master
feature/AEC3
feature/mac_reload
fix/fec-find-payload-type-number
fix/smff-crash
fix/textureview_infinite_loop
fix/video-conference-ssrc-changed
hotfix/use-negotiated-extension-ids
release/5.4
5.5.0-alpha
5.4.2
5.4.1
5.4.0
5.4.0-beta
1 merge request
!1012
Added ms_snd_card_set_name(), only to be used in detect() method
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/mediastreamer2/mssndcard.h
+9
-0
include/mediastreamer2/mssndcard.h
src/base/mssndcard.c
+10
-0
src/base/mssndcard.c
with
19 additions
and
0 deletions
include/mediastreamer2/mssndcard.h
+
9
−
0
View file @
8e0904bd
...
...
@@ -562,6 +562,15 @@ MS2_PUBLIC const char *ms_snd_card_device_type_to_string(const MSSndCardDeviceTy
*/
MS2_PUBLIC
const
char
*
ms_snd_card_get_name
(
const
MSSndCard
*
obj
);
/**
* Sets the sound card's name.
* Warning: only call this method while in the detect() method, not after!
*
* @param obj A sound card object.
* @param new_name The new name for the soundcard
*/
MS2_PUBLIC
void
ms_snd_card_set_name
(
MSSndCard
*
obj
,
const
char
*
new_name
);
/**
* Retreive sound card's name ($driver_type: $name).
*
...
...
This diff is collapsed.
Click to expand it.
src/base/mssndcard.c
+
10
−
0
View file @
8e0904bd
...
...
@@ -427,6 +427,16 @@ const char *ms_snd_card_get_name(const MSSndCard *obj) {
return
obj
->
name
;
}
void
ms_snd_card_set_name
(
MSSndCard
*
obj
,
const
char
*
new_name
)
{
if
(
obj
->
name
)
{
ms_free
(
obj
->
name
);
obj
->
name
=
NULL
;
}
if
(
new_name
)
{
obj
->
name
=
ms_strdup
(
new_name
);
}
}
unsigned
int
ms_snd_card_get_capabilities
(
const
MSSndCard
*
obj
)
{
return
obj
->
capabilities
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets