mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 18:39:54 +00:00
mpeg2enc: remove some unused code
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1491>
This commit is contained in:
parent
7f6eb54d42
commit
0c28c406cc
1 changed files with 0 additions and 30 deletions
|
@ -99,10 +99,6 @@ static gboolean gst_mpeg2enc_sink_event (GstVideoEncoder *
|
|||
|
||||
static GstFlowReturn gst_mpeg2enc_finish (GstVideoEncoder * video_encoder);
|
||||
static void gst_mpeg2enc_loop (GstVideoEncoder * video_encoder);
|
||||
#if 0
|
||||
static GstStateChangeReturn gst_mpeg2enc_change_state (GstElement * element,
|
||||
GstStateChange transition);
|
||||
#endif
|
||||
|
||||
static void gst_mpeg2enc_get_property (GObject * object,
|
||||
guint prop_id, GValue * value, GParamSpec * pspec);
|
||||
|
@ -707,32 +703,6 @@ gst_mpeg2enc_set_property (GObject * object,
|
|||
GST_MPEG2ENC (object)->options->setProperty (prop_id, value);
|
||||
}
|
||||
|
||||
#if 0
|
||||
static GstStateChangeReturn
|
||||
gst_mpeg2enc_change_state (GstElement * element, GstStateChange transition)
|
||||
{
|
||||
GstMpeg2enc *enc = GST_MPEG2ENC (element);
|
||||
GstStateChangeReturn ret;
|
||||
|
||||
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
||||
if (ret == GST_STATE_CHANGE_FAILURE)
|
||||
goto done;
|
||||
|
||||
switch (transition) {
|
||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||
GST_MPEG2ENC_MUTEX_LOCK (enc);
|
||||
gst_mpeg2enc_reset (enc);
|
||||
GST_MPEG2ENC_MUTEX_UNLOCK (enc);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
done:
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
|
||||
static mjpeg_log_handler_t old_handler = NULL;
|
||||
|
|
Loading…
Reference in a new issue