audio: Send on_pause() callback when autopausing
Also seek to 0 when choosing the next track. Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
parent
e1dbdb3ffb
commit
2b57be8c66
|
@ -38,6 +38,7 @@ static void handle_pause_count()
|
||||||
else if (o_pause_count == 0) {
|
else if (o_pause_count == 0) {
|
||||||
o_should_pause = true;
|
o_should_pause = true;
|
||||||
o_pause_enabled = false;
|
o_pause_enabled = false;
|
||||||
|
get_callbacks()->on_pause();
|
||||||
} else
|
} else
|
||||||
o_pause_count--;
|
o_pause_count--;
|
||||||
get_callbacks()->on_pause_count_changed(o_pause_enabled, o_pause_count);
|
get_callbacks()->on_pause_count_changed(o_pause_enabled, o_pause_count);
|
||||||
|
@ -53,6 +54,7 @@ static gboolean on_message(GstBus *bus, GstMessage *message, gpointer data)
|
||||||
case GST_MESSAGE_EOS:
|
case GST_MESSAGE_EOS:
|
||||||
handle_pause_count();
|
handle_pause_count();
|
||||||
audio :: next();
|
audio :: next();
|
||||||
|
audio :: seek_to(0);
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user