libvlc_media_list_player_play_item (mlp, md, &ex);
catch ();
- libvlc_media_release (md);
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
- msleep(100000);
+ libvlc_media_release (md);
libvlc_media_list_player_previous (mlp, &ex);
catch ();
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_pause (mlp, &ex);
catch();
- msleep(100000);
-
libvlc_media_list_player_previous (mlp, &ex);
catch ();
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_stop (mlp, &ex);
catch ();
- msleep(100000);
-
libvlc_media_list_player_previous (mlp, &ex);
catch ();
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_stop (mlp, &ex);
catch ();
libvlc_media_release (md);
- msleep(100000);
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
libvlc_media_list_player_next (mlp, &ex);
catch ();
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_pause (mlp, &ex);
catch();
- msleep(100000);
-
libvlc_media_list_player_next (mlp, &ex);
catch ();
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_stop (mlp, &ex);
catch ();
- msleep(100000);
-
libvlc_media_list_player_next (mlp, &ex);
catch ();
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_stop (mlp, &ex);
catch ();
libvlc_media_list_player_play_item( mlp, md, &ex );
catch ();
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_pause (mlp, &ex);
catch();
libvlc_media_list_player_play_item_at_index( mlp, 0, &ex );
catch ();
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_stop (mlp, &ex);
catch ();
libvlc_media_list_player_play_item (mlp, md, &ex);
catch ();
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_release (md);
catch ();
libvlc_media_release (md2);
libvlc_media_release (md5);
catch ();
- msleep(500000);
-
libvlc_media_list_player_stop (mlp, &ex);
catch ();
libvlc_media_list_player_play_item (mlp, md, &ex);
catch ();
- msleep(500000);
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
libvlc_media_list_player_stop (mlp, &ex);
catch ();
libvlc_media_list_player_play_item (mlp, md, &ex);
catch ();
- msleep(500000);
+ while (!libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
libvlc_media_list_player_stop (mlp, &ex);
catch ();