How to dynamically change filesrc location and gapless playback and loop using C
imoni
sato at jmt-kk.co.jp
Thu Aug 13 15:15:53 UTC 2020
Thank you for your answer.
I tried the example
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/blob/master/tools/gst-play.c#L245
<https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/blob/master/tools/gst-play.c#L245>
The build did not succeed.
First of all, #include <gst/gst-i18n-app.h> did not exist, so I downloaded
it from
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/blob/675415bf2ea9ddc75ea5e5b6eae9ae942c19d6dc/gst-libs/gst/gst-i18n-app.h
<https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/blob/675415bf2ea9ddc75ea5e5b6eae9ae942c19d6dc/gst-libs/gst/gst-i18n-app.h>
.
Is this way OK?
Next, I got the following error.What is the cause of this?
pi at raspberrypi:~ $ gcc tools_gst-play.c `pkg-config --cflags --libs gtk+-3.0
gstreamer-1.0`
tools_gst-play.c: In function ‘play_do_seek’:
tools_gst-play.c:963:22: error: ‘GST_SEEK_FLAG_INSTANT_RATE_CHANGE’
undeclared (first use in this function); did you mean
‘G_TYPE_FLAG_INSTANTIATABLE’?
seek_flags | GST_SEEK_FLAG_INSTANT_RATE_CHANGE,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
G_TYPE_FLAG_INSTANTIATABLE
tools_gst-play.c:963:22: note: each undeclared identifier is reported only
once for each function it appears in
tools_gst-play.c: In function ‘main’:
tools_gst-play.c:1511:29: error: expected ‘)’ before ‘GST_API_VERSION’
g_set_prgname ("gst-play-" GST_API_VERSION);
^~~~~~~~~~~~~~~~
)
tools_gst-play.c:1516:52: error: ‘GETTEXT_PACKAGE’ undeclared (first use in
this function)
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
^~~~~~~~~~~~~~~
tools_gst-play.c:1532:53: error: ‘PACKAGE_VERSION’ undeclared (first use in
this function); did you mean ‘GST_TAG_VERSION’?
gst_print ("%s version %s\n", g_get_prgname (), PACKAGE_VERSION);
^~~~~~~~~~~~~~~
GST_TAG_VERSION
tools_gst-play.c:1534:24: error: ‘GST_PACKAGE_ORIGIN’ undeclared (first use
in this function); did you mean ‘GST_PARSE_ERROR_LINK’?
gst_print ("%s\n", GST_PACKAGE_ORIGIN);
^~~~~~~~~~~~~~~~~~
GST_PARSE_ERROR_LINK
tools_gst-play.c:1575:20: error: expected ‘)’ before ‘GST_API_VERSION’
"gst-play-" GST_API_VERSION);
^~~~~~~~~~~~~~~~
)
Thank you and best regards,
imoni
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list