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) {
|
||||
o_should_pause = true;
|
||||
o_pause_enabled = false;
|
||||
get_callbacks()->on_pause();
|
||||
} else
|
||||
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:
|
||||
handle_pause_count();
|
||||
audio :: next();
|
||||
audio :: seek_to(0);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user