Commit e87f1b6a authored by François Grisez's avatar François Grisez
Browse files

Fix eof callback issue

parent cc5da3ab
......@@ -155,7 +155,7 @@ bool_t ms_file_player_open(MSFilePlayer *obj, const char *filepath) {
return FALSE;
ms_filter_add_notify_callback(obj->player, _eof_filter_notify_cb, obj, FALSE);
ms_filter_add_notify_callback(obj->player, _eof_filter_notify_cb, obj, TRUE);
ms_ticker_attach(obj->ticker, obj->player);
obj->is_open = TRUE;
obj->filename = ms_strdup(filepath);
......@@ -45,8 +45,7 @@ static void play_file(const char *filepath, bool_t unsupported_format) {
bool_t succeed;
Eof eof;
MSFilePlayer *file_player = NULL;
// MSSndCard *snd_card = ms_snd_card_manager_get_default_card(ms_snd_card_manager_get());
MSSndCard *snd_card = ms_snd_card_manager_get_card(ms_snd_card_manager_get(), "ALSA: default device");
MSSndCard *snd_card = ms_snd_card_manager_get_default_card(ms_snd_card_manager_get());
const char *display_name = video_stream_get_default_video_renderer();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment