• Home
  • Raw
  • Download

Lines Matching refs:player

70   GstPlayer *player;  in START_TEST()  local
72 player = gst_player_new (NULL, NULL); in START_TEST()
73 fail_unless (player != NULL); in START_TEST()
74 g_object_unref (player); in START_TEST()
81 GstPlayer *player; in START_TEST() local
84 player = gst_player_new (NULL, NULL); in START_TEST()
86 fail_unless (player != NULL); in START_TEST()
88 gst_player_set_uri (player, "file:///path/to/a/file"); in START_TEST()
89 uri = gst_player_get_uri (player); in START_TEST()
94 g_object_unref (player); in START_TEST()
101 GstPlayer *player; in START_TEST() local
105 player = gst_player_new (NULL, NULL); in START_TEST()
107 fail_unless (player != NULL); in START_TEST()
109 config = gst_player_get_config (player); in START_TEST()
113 gst_player_set_config (player, config); in START_TEST()
115 g_object_unref (player); in START_TEST()
181 void (*test_callback) (GstPlayer * player, TestPlayerStateChange change,
187 test_player_state_change_debug (GstPlayer * player, in test_player_state_change_debug() argument
191 GST_DEBUG_OBJECT (player, "Changed %s:\n" in test_player_state_change_debug()
232 buffering_cb (GstPlayer * player, gint percent, TestPlayerState * state) in buffering_cb() argument
239 test_player_state_change_debug (player, STATE_CHANGE_BUFFERING, &old_state, in buffering_cb()
241 state->test_callback (player, STATE_CHANGE_BUFFERING, &old_state, state); in buffering_cb()
245 duration_changed_cb (GstPlayer * player, guint64 duration, in duration_changed_cb() argument
253 test_player_state_change_debug (player, STATE_CHANGE_DURATION_CHANGED, in duration_changed_cb()
255 state->test_callback (player, STATE_CHANGE_DURATION_CHANGED, &old_state, in duration_changed_cb()
260 end_of_stream_cb (GstPlayer * player, TestPlayerState * state) in end_of_stream_cb() argument
267 test_player_state_change_debug (player, STATE_CHANGE_END_OF_STREAM, in end_of_stream_cb()
269 state->test_callback (player, STATE_CHANGE_END_OF_STREAM, &old_state, state); in end_of_stream_cb()
273 error_cb (GstPlayer * player, GError * error, TestPlayerState * state) in error_cb() argument
280 test_player_state_change_debug (player, STATE_CHANGE_ERROR, &old_state, in error_cb()
282 state->test_callback (player, STATE_CHANGE_ERROR, &old_state, state); in error_cb()
286 warning_cb (GstPlayer * player, GError * error, TestPlayerState * state) in warning_cb() argument
293 test_player_state_change_debug (player, STATE_CHANGE_WARNING, &old_state, in warning_cb()
295 state->test_callback (player, STATE_CHANGE_WARNING, &old_state, state); in warning_cb()
299 position_updated_cb (GstPlayer * player, guint64 position, in position_updated_cb() argument
307 test_player_state_change_debug (player, STATE_CHANGE_POSITION_UPDATED, in position_updated_cb()
309 state->test_callback (player, STATE_CHANGE_POSITION_UPDATED, &old_state, in position_updated_cb()
314 media_info_updated_cb (GstPlayer * player, GstPlayerMediaInfo * media_info, in media_info_updated_cb() argument
323 test_player_state_change_debug (player, STATE_CHANGE_MEDIA_INFO_UPDATED, in media_info_updated_cb()
325 state->test_callback (player, STATE_CHANGE_MEDIA_INFO_UPDATED, &old_state, in media_info_updated_cb()
330 state_changed_cb (GstPlayer * player, GstPlayerState player_state, in state_changed_cb() argument
342 test_player_state_change_debug (player, STATE_CHANGE_STATE_CHANGED, in state_changed_cb()
344 state->test_callback (player, STATE_CHANGE_STATE_CHANGED, &old_state, state); in state_changed_cb()
348 video_dimensions_changed_cb (GstPlayer * player, gint width, gint height, in video_dimensions_changed_cb() argument
357 test_player_state_change_debug (player, STATE_CHANGE_VIDEO_DIMENSIONS_CHANGED, in video_dimensions_changed_cb()
359 state->test_callback (player, STATE_CHANGE_VIDEO_DIMENSIONS_CHANGED, in video_dimensions_changed_cb()
364 seek_done_cb (GstPlayer * player, guint64 position, TestPlayerState * state) in seek_done_cb() argument
372 test_player_state_change_debug (player, STATE_CHANGE_SEEK_DONE, in seek_done_cb()
374 state->test_callback (player, STATE_CHANGE_SEEK_DONE, &old_state, state); in seek_done_cb()
378 uri_loaded_cb (GstPlayer * player, const gchar * uri, TestPlayerState * state) in uri_loaded_cb() argument
383 state->test_callback (player, STATE_CHANGE_URI_LOADED, &old_state, state); in uri_loaded_cb()
389 GstPlayer *player; in test_player_new() local
392 player = in test_player_new()
395 fail_unless (player != NULL); in test_player_new()
399 playbin = gst_player_get_pipeline (player); in test_player_new()
408 g_signal_connect (player, "buffering", G_CALLBACK (buffering_cb), state); in test_player_new()
409 g_signal_connect (player, "duration-changed", in test_player_new()
411 g_signal_connect (player, "end-of-stream", G_CALLBACK (end_of_stream_cb), in test_player_new()
413 g_signal_connect (player, "error", G_CALLBACK (error_cb), state); in test_player_new()
414 g_signal_connect (player, "warning", G_CALLBACK (warning_cb), state); in test_player_new()
415 g_signal_connect (player, "position-updated", in test_player_new()
417 g_signal_connect (player, "state-changed", G_CALLBACK (state_changed_cb), in test_player_new()
419 g_signal_connect (player, "media-info-updated", in test_player_new()
421 g_signal_connect (player, "video-dimensions-changed", in test_player_new()
423 g_signal_connect (player, "seek-done", G_CALLBACK (seek_done_cb), state); in test_player_new()
424 g_signal_connect (player, "uri-loaded", G_CALLBACK (uri_loaded_cb), state); in test_player_new()
426 return player; in test_player_new()
430 test_player_stopped_cb (GstPlayer * player, TestPlayerStateChange change, in test_player_stopped_cb() argument
439 stop_player (GstPlayer * player, TestPlayerState * state) in stop_player() argument
445 gst_player_stop (player); in stop_player()
452 test_play_audio_video_eos_cb (GstPlayer * player, TestPlayerStateChange change, in test_play_audio_video_eos_cb() argument
548 GstPlayer *player; in START_TEST() local
557 player = test_player_new (&state); in START_TEST()
559 fail_unless (player != NULL); in START_TEST()
563 gst_player_set_uri (player, uri); in START_TEST()
566 gst_player_play (player); in START_TEST()
571 stop_player (player, &state); in START_TEST()
572 g_object_unref (player); in START_TEST()
668 test_media_info_object (GstPlayer * player, GstPlayerMediaInfo * media_info) in test_media_info_object() argument
711 test_play_media_info_cb (GstPlayer * player, TestPlayerStateChange change, in test_play_media_info_cb() argument
717 test_media_info_object (player, new_state->media_info); in test_play_media_info_cb()
728 GstPlayer *player; in START_TEST() local
737 player = test_player_new (&state); in START_TEST()
739 fail_unless (player != NULL); in START_TEST()
743 gst_player_set_uri (player, uri); in START_TEST()
746 gst_player_play (player); in START_TEST()
750 stop_player (player, &state); in START_TEST()
751 g_object_unref (player); in START_TEST()
758 test_play_error_invalid_external_suburi_cb (GstPlayer * player, in test_play_error_invalid_external_suburi_cb() argument
772 gst_player_set_subtitle_uri (player, suburi); in test_play_error_invalid_external_suburi_cb()
785 test_play_stream_disable_cb (GstPlayer * player, in test_play_stream_disable_cb() argument
794 gst_player_set_audio_track_enabled (player, FALSE); in test_play_stream_disable_cb()
799 audio = gst_player_get_current_audio_track (player); in test_play_stream_disable_cb()
802 gst_player_set_subtitle_track_enabled (player, FALSE); in test_play_stream_disable_cb()
807 sub = gst_player_get_current_subtitle_track (player); in test_play_stream_disable_cb()
820 GstPlayer *player; in START_TEST() local
829 player = test_player_new (&state); in START_TEST()
831 fail_unless (player != NULL); in START_TEST()
835 gst_player_set_uri (player, uri); in START_TEST()
838 gst_player_play (player); in START_TEST()
843 stop_player (player, &state); in START_TEST()
844 g_object_unref (player); in START_TEST()
851 test_play_stream_switch_audio_cb (GstPlayer * player, in test_play_stream_switch_audio_cb() argument
861 ret = gst_player_set_audio_track (player, 1); in test_play_stream_switch_audio_cb()
868 audio = gst_player_get_current_audio_track (player); in test_play_stream_switch_audio_cb()
885 GstPlayer *player; in START_TEST() local
894 player = test_player_new (&state); in START_TEST()
896 fail_unless (player != NULL); in START_TEST()
900 gst_player_set_uri (player, uri); in START_TEST()
903 gst_player_play (player); in START_TEST()
908 stop_player (player, &state); in START_TEST()
909 g_object_unref (player); in START_TEST()
916 test_play_stream_switch_subtitle_cb (GstPlayer * player, in test_play_stream_switch_subtitle_cb() argument
926 ret = gst_player_set_subtitle_track (player, 5); in test_play_stream_switch_subtitle_cb()
933 sub = gst_player_get_current_subtitle_track (player); in test_play_stream_switch_subtitle_cb()
950 GstPlayer *player; in START_TEST() local
959 player = test_player_new (&state); in START_TEST()
961 fail_unless (player != NULL); in START_TEST()
965 gst_player_set_uri (player, uri); in START_TEST()
968 gst_player_play (player); in START_TEST()
973 stop_player (player, &state); in START_TEST()
974 g_object_unref (player); in START_TEST()
982 GstPlayer *player; in START_TEST() local
991 player = test_player_new (&state); in START_TEST()
993 fail_unless (player != NULL); in START_TEST()
997 gst_player_set_uri (player, uri); in START_TEST()
1000 gst_player_play (player); in START_TEST()
1005 stop_player (player, &state); in START_TEST()
1006 g_object_unref (player); in START_TEST()
1022 test_play_external_suburi_cb (GstPlayer * player, in test_play_external_suburi_cb() argument
1034 gst_player_set_subtitle_uri (player, suburi); in test_play_external_suburi_cb()
1042 current_suburi = gst_player_get_subtitle_uri (player); in test_play_external_suburi_cb()
1061 GstPlayer *player; in START_TEST() local
1070 player = test_player_new (&state); in START_TEST()
1072 fail_unless (player != NULL); in START_TEST()
1076 gst_player_set_uri (player, uri); in START_TEST()
1079 gst_player_play (player); in START_TEST()
1084 stop_player (player, &state); in START_TEST()
1085 g_object_unref (player); in START_TEST()
1092 test_play_rate_cb (GstPlayer * player, in test_play_rate_cb() argument
1102 g_object_get (player, "position", &pos, "duration", &dur, NULL); in test_play_rate_cb()
1104 gst_player_seek (player, pos); in test_play_rate_cb()
1107 fail_unless_equals_double (gst_player_get_rate (player), 1.0); in test_play_rate_cb()
1114 gst_player_set_rate (player, 1.5); in test_play_rate_cb()
1116 gst_player_set_rate (player, -1.0); in test_play_rate_cb()
1133 GstPlayer *player; in START_TEST() local
1142 player = test_player_new (&state); in START_TEST()
1144 fail_unless (player != NULL); in START_TEST()
1148 gst_player_set_uri (player, uri); in START_TEST()
1151 gst_player_play (player); in START_TEST()
1156 stop_player (player, &state); in START_TEST()
1157 g_object_unref (player); in START_TEST()
1165 GstPlayer *player; in START_TEST() local
1174 player = test_player_new (&state); in START_TEST()
1176 fail_unless (player != NULL); in START_TEST()
1180 gst_player_set_uri (player, uri); in START_TEST()
1183 gst_player_play (player); in START_TEST()
1188 stop_player (player, &state); in START_TEST()
1189 g_object_unref (player); in START_TEST()
1197 GstPlayer *player; in START_TEST() local
1206 player = test_player_new (&state); in START_TEST()
1208 fail_unless (player != NULL); in START_TEST()
1212 gst_player_set_uri (player, uri); in START_TEST()
1215 gst_player_play (player); in START_TEST()
1220 stop_player (player, &state); in START_TEST()
1221 g_object_unref (player); in START_TEST()
1228 test_play_error_invalid_uri_cb (GstPlayer * player, in test_play_error_invalid_uri_cb() argument
1265 GstPlayer *player; in START_TEST() local
1273 player = test_player_new (&state); in START_TEST()
1275 fail_unless (player != NULL); in START_TEST()
1277 gst_player_set_uri (player, "foo://bar"); in START_TEST()
1279 gst_player_play (player); in START_TEST()
1284 stop_player (player, &state); in START_TEST()
1285 g_object_unref (player); in START_TEST()
1292 test_play_error_invalid_uri_and_play_cb (GstPlayer * player, in test_play_error_invalid_uri_and_play_cb() argument
1323 gst_player_set_uri (player, uri); in test_play_error_invalid_uri_and_play_cb()
1326 gst_player_play (player); in test_play_error_invalid_uri_and_play_cb()
1379 GstPlayer *player; in START_TEST() local
1387 player = test_player_new (&state); in START_TEST()
1389 fail_unless (player != NULL); in START_TEST()
1391 gst_player_set_uri (player, "foo://bar"); in START_TEST()
1393 gst_player_play (player); in START_TEST()
1398 stop_player (player, &state); in START_TEST()
1399 g_object_unref (player); in START_TEST()
1406 test_play_seek_done_cb (GstPlayer * player, in test_play_seek_done_cb() argument
1413 gst_player_seek (player, 0); in test_play_seek_done_cb()
1426 GstPlayer *player; in START_TEST() local
1435 player = test_player_new (&state); in START_TEST()
1437 fail_unless (player != NULL); in START_TEST()
1441 gst_player_set_uri (player, uri); in START_TEST()
1444 gst_player_play (player); in START_TEST()
1449 stop_player (player, &state); in START_TEST()
1450 g_object_unref (player); in START_TEST()
1457 test_play_position_update_interval_cb (GstPlayer * player, in test_play_position_update_interval_cb() argument
1469 GstClockTime position = gst_player_get_position (player); in test_play_position_update_interval_cb()
1474 GST_DEBUG_OBJECT (player, in test_play_position_update_interval_cb()
1504 GstPlayer *player; in START_TEST() local
1514 player = test_player_new (&state); in START_TEST()
1516 config = gst_player_get_config (player); in START_TEST()
1518 gst_player_set_config (player, config); in START_TEST()
1520 fail_unless (player != NULL); in START_TEST()
1524 gst_player_set_uri (player, uri); in START_TEST()
1527 gst_player_play (player); in START_TEST()
1533 gst_player_stop (player); in START_TEST()
1535 config = gst_player_get_config (player); in START_TEST()
1537 gst_player_set_config (player, config); in START_TEST()
1544 stop_player (player, &state); in START_TEST()
1545 g_object_unref (player); in START_TEST()
1552 test_restart_cb (GstPlayer * player, in test_restart_cb() argument
1569 test_restart_cb2 (GstPlayer * player, in test_restart_cb2() argument
1588 GstPlayer *player; in START_TEST() local
1597 player = test_player_new (&state); in START_TEST()
1599 fail_unless (player != NULL); in START_TEST()
1603 gst_player_set_uri (player, uri); in START_TEST()
1606 gst_player_play (player); in START_TEST()
1609 stop_player (player, &state); in START_TEST()
1617 gst_player_set_uri (player, uri); in START_TEST()
1620 gst_player_play (player); in START_TEST()
1623 stop_player (player, &state); in START_TEST()
1625 g_object_unref (player); in START_TEST()
1647 GstPlayer *player; in START_TEST() local
1654 player = gst_player_new (NULL, NULL); in START_TEST()
1655 fail_unless (player != NULL); in START_TEST()
1657 gst_player_set_uri (player, "http://badger.com/test.mkv"); in START_TEST()
1659 config = gst_player_get_config (player); in START_TEST()
1666 gst_player_set_config (player, config); in START_TEST()
1668 pipeline = gst_player_get_pipeline (player); in START_TEST()
1672 gst_player_pause (player); in START_TEST()
1677 g_object_unref (player); in START_TEST()
1735 GST_CHECK_MAIN (player)