mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
tutorials/basic: Fix compilation errors
https://bugzilla.gnome.org/show_bug.cgi?id=777734
This commit is contained in:
parent
975b68216e
commit
282851deef
1 changed files with 3 additions and 3 deletions
|
@ -100,13 +100,13 @@ int main(int argc, char *argv[]) {
|
|||
gint64 current = -1;
|
||||
|
||||
/* Query the current position of the stream */
|
||||
if (!gst_element_query_position (data.playbin, GST_TIME_FORMAT, ¤t)) {
|
||||
if (!gst_element_query_position (data.playbin, GST_FORMAT_TIME, ¤t)) {
|
||||
g_printerr ("Could not query current position.\n");
|
||||
}
|
||||
|
||||
/* If we didn't know it yet, query the stream duration */
|
||||
if (!GST_CLOCK_TIME_IS_VALID (data.duration)) {
|
||||
if (!gst_element_query_duration (data.playbin, GST_TIME_FORMAT, &data.duration)) {
|
||||
if (!gst_element_query_duration (data.playbin, GST_FORMAT_TIME, &data.duration)) {
|
||||
g_printerr ("Could not query current duration.\n");
|
||||
}
|
||||
}
|
||||
|
@ -285,7 +285,7 @@ and directly provides us with the result.
|
|||
```
|
||||
/* If we didn't know it yet, query the stream duration */
|
||||
if (!GST_CLOCK_TIME_IS_VALID (data.duration)) {
|
||||
if (!gst_element_query_duration (data.pipeline, GST_TIME_FORMAT, &data.duration)) {
|
||||
if (!gst_element_query_duration (data.pipeline, GST_FORMAT_TIME, &data.duration)) {
|
||||
g_printerr ("Could not query current duration.\n");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue