mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
videotestsrc: fix unit test breaking on duration query
The new switch caused breaks to not break of the main switch anymore, causing fall through.
This commit is contained in:
parent
b21a67f99e
commit
0d66d05c98
1 changed files with 4 additions and 2 deletions
|
@ -792,12 +792,13 @@ gst_video_test_src_query (GstBaseSrc * bsrc, GstQuery * query)
|
|||
* GST_SECOND, src->info.fps_d, src->info.fps_n);
|
||||
res = TRUE;
|
||||
gst_query_set_duration (query, GST_FORMAT_TIME, dur);
|
||||
break;
|
||||
goto done;
|
||||
}
|
||||
case GST_FORMAT_BYTES:
|
||||
res = TRUE;
|
||||
gst_query_set_duration (query, GST_FORMAT_BYTES,
|
||||
bsrc->num_buffers * src->info.size);
|
||||
break;
|
||||
goto done;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -808,6 +809,7 @@ gst_video_test_src_query (GstBaseSrc * bsrc, GstQuery * query)
|
|||
res = GST_BASE_SRC_CLASS (parent_class)->query (bsrc, query);
|
||||
break;
|
||||
}
|
||||
done:
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue