summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2016-12-21 12:05:35 +0100
committerEdward Hervey <bilboed@bilboed.com>2016-12-21 12:06:00 +0100
commitcf9a341e9d78b022aa5269f8275756101943ec9c (patch)
tree33be4cc6770fe13c40547e760a50e33810299d04 /tests
parent19ddd9efd2fea2a2ac3a428f5341c1f60a6066ba (diff)
downloadgstreamer-plugins-bad-cf9a341e9d78b022aa5269f8275756101943ec9c.tar.gz
check: Use non-deprecated API
Diffstat (limited to 'tests')
-rw-r--r--tests/check/libs/player.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/check/libs/player.c b/tests/check/libs/player.c
index 8c203b9df..5e62477b5 100644
--- a/tests/check/libs/player.c
+++ b/tests/check/libs/player.c
@@ -576,7 +576,7 @@ test_audio_info (GstPlayerMediaInfo * media_info)
gint i = 0;
GList *list;
- for (list = gst_player_get_audio_streams (media_info);
+ for (list = gst_player_media_info_get_audio_streams (media_info);
list != NULL; list = list->next) {
GstPlayerStreamInfo *stream = (GstPlayerStreamInfo *) list->data;
GstPlayerAudioInfo *audio_info = (GstPlayerAudioInfo *) stream;
@@ -615,7 +615,7 @@ test_video_info (GstPlayerMediaInfo * media_info)
{
GList *list;
- for (list = gst_player_get_video_streams (media_info);
+ for (list = gst_player_media_info_get_video_streams (media_info);
list != NULL; list = list->next) {
gint fps_d, fps_n;
guint par_d, par_n;
@@ -644,7 +644,7 @@ test_subtitle_info (GstPlayerMediaInfo * media_info)
{
GList *list;
- for (list = gst_player_get_subtitle_streams (media_info);
+ for (list = gst_player_media_info_get_subtitle_streams (media_info);
list != NULL; list = list->next) {
GstPlayerStreamInfo *stream = (GstPlayerStreamInfo *) list->data;
GstPlayerSubtitleInfo *sub = (GstPlayerSubtitleInfo *) stream;
@@ -680,15 +680,15 @@ test_media_info_object (GstPlayer * player, GstPlayerMediaInfo * media_info)
fail_unless (list != NULL);
fail_unless_equals_int (g_list_length (list), 10);
- list = gst_player_get_video_streams (media_info);
+ list = gst_player_media_info_get_video_streams (media_info);
fail_unless (list != NULL);
fail_unless_equals_int (g_list_length (list), 1);
- list = gst_player_get_audio_streams (media_info);
+ list = gst_player_media_info_get_audio_streams (media_info);
fail_unless (list != NULL);
fail_unless_equals_int (g_list_length (list), 2);
- list = gst_player_get_subtitle_streams (media_info);
+ list = gst_player_media_info_get_subtitle_streams (media_info);
fail_unless (list != NULL);
fail_unless_equals_int (g_list_length (list), 7);
@@ -1007,7 +1007,7 @@ END_TEST;
static gboolean
has_subtitle_stream (TestPlayerState * new_state)
{
- if (gst_player_get_subtitle_streams (new_state->media_info))
+ if (gst_player_media_info_get_subtitle_streams (new_state->media_info))
return TRUE;
return FALSE;