summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-02-12 13:45:28 +0100
committerCarlos Soriano <csoriano1618+gnome@gmail.com>2019-02-13 10:17:54 +0000
commitc51899c3558cd41d425e0d38f3cb4371e1e69f02 (patch)
tree098be34988f1c6b57b5b82e820e00754fa8905ff /extensions
parent3d9d2ef8d1627d2efe56b6bad5c8f6e540f07ec4 (diff)
downloadnautilus-c51899c3558cd41d425e0d38f3cb4371e1e69f02.tar.gz
audio-video-properties: Remove unused code
Diffstat (limited to 'extensions')
-rw-r--r--extensions/audio-video-properties/totem-gst-helpers.c41
-rw-r--r--extensions/audio-video-properties/totem-gst-helpers.h28
2 files changed, 1 insertions, 68 deletions
diff --git a/extensions/audio-video-properties/totem-gst-helpers.c b/extensions/audio-video-properties/totem-gst-helpers.c
index 93b81398c..e01996daf 100644
--- a/extensions/audio-video-properties/totem-gst-helpers.c
+++ b/extensions/audio-video-properties/totem-gst-helpers.c
@@ -23,46 +23,7 @@
*/
#include "totem-gst-helpers.h"
-
-#include <gst/tag/tag.h>
-#include <gst/video/video-format.h>
-
-void
-totem_gst_message_print (GstMessage *msg,
- GstElement *play,
- const char *filename)
-{
- GError *err = NULL;
- char *dbg = NULL;
-
- g_return_if_fail (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
-
- if (play != NULL) {
- g_return_if_fail (filename != NULL);
-
- GST_DEBUG_BIN_TO_DOT_FILE (GST_BIN_CAST (play),
- GST_DEBUG_GRAPH_SHOW_ALL ^ GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS,
- filename);
- }
-
- gst_message_parse_error (msg, &err, &dbg);
- if (err) {
- char *uri;
-
- g_object_get (play, "uri", &uri, NULL);
- GST_ERROR ("message = %s", GST_STR_NULL (err->message));
- GST_ERROR ("domain = %d (%s)", err->domain,
- GST_STR_NULL (g_quark_to_string (err->domain)));
- GST_ERROR ("code = %d", err->code);
- GST_ERROR ("debug = %s", GST_STR_NULL (dbg));
- GST_ERROR ("source = %" GST_PTR_FORMAT, msg->src);
- GST_ERROR ("uri = %s", GST_STR_NULL (uri));
- g_free (uri);
-
- g_error_free (err);
- }
- g_free (dbg);
-}
+#include <gst/gstprotection.h>
/* Disable decoders that require a display environment to work,
* and that might cause crashes */
diff --git a/extensions/audio-video-properties/totem-gst-helpers.h b/extensions/audio-video-properties/totem-gst-helpers.h
index edeeb1da6..9ec559cae 100644
--- a/extensions/audio-video-properties/totem-gst-helpers.h
+++ b/extensions/audio-video-properties/totem-gst-helpers.h
@@ -20,34 +20,6 @@
#ifndef HAVE_TOTEM_GST_HELPERS_H
#define HAVE_TOTEM_GST_HELPERS_H
-#define GST_USE_UNSTABLE_API 1
-
-#include <gst/gst.h>
-
-G_BEGIN_DECLS
-
-/* GstPlayFlags flags from playbin */
-typedef enum {
- GST_PLAY_FLAG_VIDEO = (1 << 0),
- GST_PLAY_FLAG_AUDIO = (1 << 1),
- GST_PLAY_FLAG_TEXT = (1 << 2),
- GST_PLAY_FLAG_VIS = (1 << 3),
- GST_PLAY_FLAG_SOFT_VOLUME = (1 << 4),
- GST_PLAY_FLAG_NATIVE_AUDIO = (1 << 5),
- GST_PLAY_FLAG_NATIVE_VIDEO = (1 << 6),
- GST_PLAY_FLAG_DOWNLOAD = (1 << 7),
- GST_PLAY_FLAG_BUFFERING = (1 << 8),
- GST_PLAY_FLAG_DEINTERLACE = (1 << 9),
- GST_PLAY_FLAG_SOFT_COLORBALANCE = (1 << 10),
- GST_PLAY_FLAG_FORCE_FILTERS = (1 << 11),
-} GstPlayFlags;
-
-void totem_gst_message_print (GstMessage *msg,
- GstElement *play,
- const char *filename);
-
void totem_gst_disable_display_decoders (void);
-G_END_DECLS
-
#endif /* HAVE_TOTEM_GST_HELPERS_H */