key = strtok_r(str, "=", &sptr);
value = strtok_r(NULL, "=", &sptr);
DEBUG_TRACE("key is: %s and value is: %s", key, value);
+
+ if (!strcmp(key, " \n")) {
+ ERROR_TRACE("Current File is removed. No contents.");
+ line_count++;
+ continue;
+ }
+
if (value != NULL) {
value[strlen(value) - 1] = '\0';
} else {
fclose(file);
return;
}
+
if (!strcmp(key, "status")) {
if (!strcmp(value, "playing")) {
elm_object_signal_emit(layout, "music_present", "elm");
line_count++;
}
- if (line_count <= 1) {
+ if (line_count == 1) {
elm_object_signal_emit(layout, "no_music", "elm");
is_play = EINA_FALSE;
}