mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 16:52:42 +00:00
tests: dash & adaptivedemux: move iterator variable declaration out of for
This is a c99-ism that gcc 4.8.5 errors on unless -std=c99 is specified. https://bugzilla.gnome.org/show_bug.cgi?id=783868
This commit is contained in:
parent
b09b17365d
commit
25d2b8a608
2 changed files with 7 additions and 4 deletions
|
@ -130,10 +130,11 @@ gst_adaptive_demux_test_find_test_data_by_stream (GstAdaptiveDemuxTestCase *
|
|||
gchar *pad_name;
|
||||
GstAdaptiveDemuxTestExpectedOutput *ret = NULL;
|
||||
guint count = 0;
|
||||
GList *walk;
|
||||
|
||||
pad_name = gst_pad_get_name (stream->pad);
|
||||
fail_unless (pad_name != NULL);
|
||||
for (GList * walk = testData->output_streams; walk; walk = g_list_next (walk)) {
|
||||
for (walk = testData->output_streams; walk; walk = g_list_next (walk)) {
|
||||
GstAdaptiveDemuxTestExpectedOutput *td = walk->data;
|
||||
if (strcmp (td->name, pad_name) == 0) {
|
||||
ret = td;
|
||||
|
@ -463,8 +464,10 @@ static void
|
|||
testSeekPostTestCallback (GstAdaptiveDemuxTestEngine * engine,
|
||||
gpointer user_data)
|
||||
{
|
||||
GList *walk;
|
||||
|
||||
GstAdaptiveDemuxTestCase *testData = GST_ADAPTIVE_DEMUX_TEST_CASE (user_data);
|
||||
for (GList * walk = testData->output_streams; walk; walk = g_list_next (walk)) {
|
||||
for (walk = testData->output_streams; walk; walk = g_list_next (walk)) {
|
||||
GstAdaptiveDemuxTestExpectedOutput *td = walk->data;
|
||||
|
||||
fail_if (td->segment_verification_needed);
|
||||
|
|
|
@ -3198,7 +3198,7 @@ GST_START_TEST (dash_mpdparser_adaptationSet_handling)
|
|||
{
|
||||
const gchar *periodName;
|
||||
guint adaptation_sets_count;
|
||||
GList *adaptationSets;
|
||||
GList *adaptationSets, *it;
|
||||
guint count = 0;
|
||||
|
||||
const gchar *xml =
|
||||
|
@ -3241,7 +3241,7 @@ GST_START_TEST (dash_mpdparser_adaptationSet_handling)
|
|||
adaptationSets = gst_mpd_client_get_adaptation_sets (mpdclient);
|
||||
fail_if (adaptationSets == NULL);
|
||||
|
||||
for (GList * it = adaptationSets; it; it = g_list_next (it)) {
|
||||
for (it = adaptationSets; it; it = g_list_next (it)) {
|
||||
GstAdaptationSetNode *adapt_set;
|
||||
adapt_set = (GstAdaptationSetNode *) it->data;
|
||||
fail_if (adapt_set == NULL);
|
||||
|
|
Loading…
Reference in a new issue