mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 12:21:17 +00:00
dash: Fix unit test after internal API change
This commit is contained in:
parent
89a04915fe
commit
8169ee8372
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue