實作分割畫面使用的Fragment
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user