forked from enlightenment/rage
video - handle null file sets nicely
makes coverity happy
This commit is contained in:
parent
cf7f767959
commit
b24a22ba6f
|
@ -634,6 +634,8 @@ video_file_set(Evas_Object *obj, const char *file)
|
|||
evas_object_hide(sd->o_vid);
|
||||
evas_object_hide(sd->clip);
|
||||
eina_stringshare_replace(&(sd->file), file);
|
||||
if (sd->file)
|
||||
{
|
||||
if (!strncasecmp(sd->file, "file:/", 6))
|
||||
{
|
||||
Efreet_Uri *uri = efreet_uri_decode(sd->file);
|
||||
|
@ -653,7 +655,7 @@ video_file_set(Evas_Object *obj, const char *file)
|
|||
eina_stringshare_replace(&(sd->artfile), NULL);
|
||||
emotion_object_file_set(sd->o_vid, sd->file);
|
||||
video_position_set(obj, 0.0);
|
||||
if ((sd->file) && (sd->doart))
|
||||
if (sd->doart)
|
||||
{
|
||||
const char *extn = strchr(sd->file, '.');
|
||||
if (extn)
|
||||
|
@ -670,6 +672,12 @@ video_file_set(Evas_Object *obj, const char *file)
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
eina_stringshare_replace(&(sd->realfile), NULL);
|
||||
eina_stringshare_replace(&(sd->artfile), NULL);
|
||||
}
|
||||
}
|
||||
|
||||
const char *
|
||||
video_file_get(Evas_Object *obj)
|
||||
|
|
Loading…
Reference in New Issue