dash: Fix unit test after internal API change

This commit is contained in:
Sebastian Dröge 2015-09-26 10:49:31 +02:00
parent 89a04915fe
commit 8169ee8372

View file

@ -3080,7 +3080,8 @@ GST_START_TEST (dash_mpdparser_activeStream_parameters)
GstAdaptationSetNode *adapt_set; GstAdaptationSetNode *adapt_set;
guint activeStreams; guint activeStreams;
GstActiveStream *activeStream; GstActiveStream *activeStream;
const gchar *mimeType; GstCaps *caps;
GstStructure *s;
gboolean bitstreamSwitchingFlag; gboolean bitstreamSwitchingFlag;
guint videoStreamWidth; guint videoStreamWidth;
guint videoStreamHeight; guint videoStreamHeight;
@ -3133,8 +3134,11 @@ GST_START_TEST (dash_mpdparser_activeStream_parameters)
fail_if (activeStream == NULL); fail_if (activeStream == NULL);
assert_equals_int (activeStream->mimeType, GST_STREAM_VIDEO); assert_equals_int (activeStream->mimeType, GST_STREAM_VIDEO);
mimeType = gst_mpd_client_get_stream_mimeType (activeStream); caps = gst_mpd_client_get_stream_caps (activeStream);
assert_equals_string (mimeType, "video/quicktime"); fail_unless (caps != NULL);
s = gst_caps_get_structure (caps, 0);
assert_equals_string (gst_structure_get_name (s), "video/quicktime");
gst_caps_unref (caps);
bitstreamSwitchingFlag = bitstreamSwitchingFlag =
gst_mpd_client_get_bitstream_switching_flag (activeStream); gst_mpd_client_get_bitstream_switching_flag (activeStream);