實作分割畫面使用的Fragment

This commit is contained in:
Barney
2022-08-05 11:36:59 +08:00
parent d2a797aaa4
commit 80233d8b6e
12 changed files with 457 additions and 208 deletions
+4 -4
View File
@@ -139,15 +139,15 @@ static gboolean refresh_ui (CustomData * data) {
if (!GST_CLOCK_TIME_IS_VALID (data->duration)) {
if (!gst_element_query_duration (data->pipeline, GST_FORMAT_TIME,
&data->duration)) {
GST_WARNING
("Could not query current duration (normal for still pictures)");
/*GST_WARNING
("Could not query current duration (normal for still pictures)");*/
data->duration = 0;
}
}
if (!gst_element_query_position (data->pipeline, GST_FORMAT_TIME, &position)) {
GST_WARNING
("Could not query current position (normal for still pictures)");
/*GST_WARNING
("Could not query current position (normal for still pictures)");*/
position = 0;
}