source: add method to mark a source idle or busy

Marking a source idle will start an idle timeout to suspend the source.
This commit is contained in:
Wim Taymans 2015-07-16 17:18:01 +02:00
parent 04eca27890
commit 12301b6ef1
2 changed files with 53 additions and 0 deletions

View file

@ -87,6 +87,9 @@ GBytes * pinos_source_get_formats (PinosSource *source, G
gboolean pinos_source_set_state (PinosSource *source, PinosSourceState state);
void pinos_source_update_state (PinosSource *source, PinosSourceState state);
void pinos_source_report_error (PinosSource *source, GError *error);
void pinos_source_report_idle (PinosSource *source);
void pinos_source_report_busy (PinosSource *source);
void pinos_source_update_possible_formats (PinosSource *source, GBytes *formats);
PinosSourceOutput * pinos_source_create_source_output (PinosSource *source,