uxplay 1.65.2: add advice to clear cache if plugin not found

This commit is contained in:
F. Duncanh
2023-07-22 05:23:40 -04:00
parent 732d78813b
commit 292be9d7e7
5 changed files with 12 additions and 6 deletions

View File

@@ -1351,7 +1351,7 @@ an AppleTV6,2 with sourceVersion 380.20.1 (an AppleTV 4K 1st gen,
introduced 2017, running tvOS 12.2.1), so it does not seem to matter
what UxPlay claims to be.</p>
<h1 id="changelog">Changelog</h1>
<p>1.65.1 2023-07-22 Add RPM spec file; add graceful exit if required
<p>1.65.2 2023-07-22 Add RPM spec file; add graceful exit if required
gstreamer libav feature “avdec_aac” is missing: (this occurs in
RPM-based distributions that ship an incomplete FFmpeg for Patent or
License reasons, and rely on users installing an externally-supplied

View File

@@ -1080,7 +1080,7 @@ tvOS 12.2.1), so it does not seem to matter what UxPlay claims to be.
# Changelog
1.65.1 2023-07-22 Add RPM spec file; add graceful exit if required gstreamer libav feature "avdec_aac" is
1.65.2 2023-07-22 Add RPM spec file; add graceful exit if required gstreamer libav feature "avdec_aac" is
missing: (this occurs in RPM-based distributions that ship an incomplete FFmpeg for Patent
or License reasons, and rely on users installing an externally-supplied complete FFmpeg).

View File

@@ -1386,7 +1386,7 @@ what UxPlay claims to be.
# Changelog
1.65.1 2023-07-22 Add RPM spec file; add graceful exit if required
1.65.2 2023-07-22 Add RPM spec file; add graceful exit if required
gstreamer libav feature "avdec_aac" is missing: (this occurs in
RPM-based distributions that ship an incomplete FFmpeg for Patent or
License reasons, and rely on users installing an externally-supplied

View File

@@ -78,16 +78,18 @@ static gboolean check_plugins (void)
plugin = NULL;
}
if (ret == FALSE) {
g_print ("\nif the plugin is installed, but not found, try clearing your gstreamer cache with:\n"
"\"rm -rf ~/.cache/gstreamer-1.0\"\n\n");
return ret;
}
for (int i = 0; i < g_strv_length ((gchar **) needed_feature); i++) {
GstPluginFeature *plugin_feature;
plugin_feature = gst_registry_find_feature (registry, needed_feature[i], GST_TYPE_ELEMENT_FACTORY);
if (!plugin_feature) {
g_print ("Required gstreamer libav plugin feature '%s' not found:\n"
g_print ("Required gstreamer libav plugin feature '%s' not found:\n\n"
"This may be missing because the FFmpeg package used by GStreamer-1.x-libav is incomplete.\n"
"(Some distributions provide an incomplete FFmpeg due to License or Patent issues:\n"
"in such cases a complete version for that distribution is usually made available elsewhere)\n\n",
"in such cases a complete version for that distribution is usually made available elsewhere)\n",
needed_feature[i]);
ret = FALSE;
continue;
@@ -95,6 +97,10 @@ static gboolean check_plugins (void)
gst_object_unref (plugin_feature);
plugin_feature = NULL;
}
if (ret == FALSE) {
g_print ("\nif the plugin feature is installed, but not found, try clearing your gstreamer cache with:\n"
"\"rm -rf ~/.cache/gstreamer-1.0\"\n\n");
}
return ret;
}

View File

@@ -1,5 +1,5 @@
Name: uxplay
Version: 1.65.1
Version: 1.65.2
Release: 1%{?dist}
%define gittag v%{version}