mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
uritranscodebin: Fix definition usage
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
parent
e68f99688f
commit
64e9142d75
1 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
#include "gsttranscoding.h"
|
#include "gsttranscoding.h"
|
||||||
#include "gsttranscodeelements.h"
|
#include "gsttranscodeelements.h"
|
||||||
#if HAVE_GETRUSAGE
|
#ifdef HAVE_GETRUSAGE
|
||||||
#include "gst-cpu-throttling-clock.h"
|
#include "gst-cpu-throttling-clock.h"
|
||||||
#endif
|
#endif
|
||||||
#include <gst/pbutils/pbutils.h>
|
#include <gst/pbutils/pbutils.h>
|
||||||
|
@ -488,7 +488,7 @@ setup_failed:
|
||||||
static void
|
static void
|
||||||
gst_uri_transcode_bin_constructed (GObject * object)
|
gst_uri_transcode_bin_constructed (GObject * object)
|
||||||
{
|
{
|
||||||
#if HAVE_GETRUSAGE
|
#ifdef HAVE_GETRUSAGE
|
||||||
GstUriTranscodeBin *self = GST_URI_TRANSCODE_BIN (object);
|
GstUriTranscodeBin *self = GST_URI_TRANSCODE_BIN (object);
|
||||||
|
|
||||||
self->cpu_clock =
|
self->cpu_clock =
|
||||||
|
@ -591,7 +591,7 @@ gst_uri_transcode_bin_set_property (GObject * object,
|
||||||
GST_OBJECT_UNLOCK (self);
|
GST_OBJECT_UNLOCK (self);
|
||||||
break;
|
break;
|
||||||
case PROP_CPU_USAGE:
|
case PROP_CPU_USAGE:
|
||||||
#if HAVE_GETRUSAGE
|
#ifdef HAVE_GETRUSAGE
|
||||||
GST_OBJECT_LOCK (self);
|
GST_OBJECT_LOCK (self);
|
||||||
self->wanted_cpu_usage = g_value_get_uint (value);
|
self->wanted_cpu_usage = g_value_get_uint (value);
|
||||||
g_object_set (self->cpu_clock, "cpu-usage", self->wanted_cpu_usage, NULL);
|
g_object_set (self->cpu_clock, "cpu-usage", self->wanted_cpu_usage, NULL);
|
||||||
|
|
Loading…
Reference in a new issue