forked from enlightenment/efl
edje/multisense: add checking sample,tone name at playing. and some indent fixes
SVN revision: 71264
This commit is contained in:
parent
962b912d75
commit
29504633fc
|
@ -339,6 +339,11 @@ _edje_multisense_internal_sound_sample_play(Edje *ed, const char *sample_name, c
|
|||
Edje_Multisense_Sound_Action command;
|
||||
|
||||
if ((!pipe_initialized) && (!player_thread)) return EINA_FALSE;
|
||||
if (!sample_name)
|
||||
{
|
||||
ERR("Given Sample Name is NULL\n");
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
command.action = EDJE_PLAY_SAMPLE;
|
||||
command.ed = ed;
|
||||
|
@ -362,6 +367,12 @@ _edje_multisense_internal_sound_tone_play(Edje *ed, const char *tone_name, const
|
|||
Edje_Multisense_Sound_Action command;
|
||||
|
||||
if ((!pipe_initialized) && (!player_thread)) return EINA_FALSE;
|
||||
if (!tone_name)
|
||||
{
|
||||
ERR("Given Tone Name is NULL\n");
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
command.action = EDJE_PLAY_TONE;
|
||||
command.ed = ed;
|
||||
strncpy(command.type.tone.tone_name, tone_name, BUF_LEN);
|
||||
|
|
Loading…
Reference in New Issue