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:
Anna Schumaker 2014-01-24 16:22:55 -05:00 committed by Anna Schumaker
parent e1dbdb3ffb
commit 2b57be8c66
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}