phoenix: remove unused i18n localization functions
This commit is contained in:
parent
7a904c8f5d
commit
b64d8a18a5
@ -43,7 +43,6 @@
|
|||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
#include <gst/base/gstpushsrc.h>
|
#include <gst/base/gstpushsrc.h>
|
||||||
#include <gst/video/video.h>
|
#include <gst/video/video.h>
|
||||||
#include <gst/gst-i18n-lib.h>
|
|
||||||
|
|
||||||
#include "gstphoenixsrc.h"
|
#include "gstphoenixsrc.h"
|
||||||
|
|
||||||
@ -581,7 +580,7 @@ gst_phoenixsrc_start (GstBaseSrc * src)
|
|||||||
gst_phoenixsrc_color_format_to_video_format (phx_format, phx_endian);
|
gst_phoenixsrc_color_format_to_video_format (phx_format, phx_endian);
|
||||||
if (videoFormat == GST_VIDEO_FORMAT_UNKNOWN) {
|
if (videoFormat == GST_VIDEO_FORMAT_UNKNOWN) {
|
||||||
GST_ELEMENT_ERROR (phoenixsrc, STREAM, WRONG_TYPE,
|
GST_ELEMENT_ERROR (phoenixsrc, STREAM, WRONG_TYPE,
|
||||||
(_("Unknown or unsupported color format.")), (NULL));
|
(("Unknown or unsupported color format.")), (NULL));
|
||||||
goto Error;
|
goto Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -592,7 +591,7 @@ gst_phoenixsrc_start (GstBaseSrc * src)
|
|||||||
|
|
||||||
if (phoenixsrc->caps == NULL) {
|
if (phoenixsrc->caps == NULL) {
|
||||||
GST_ELEMENT_ERROR (phoenixsrc, STREAM, TOO_LAZY,
|
GST_ELEMENT_ERROR (phoenixsrc, STREAM, TOO_LAZY,
|
||||||
(_("Failed to generate caps from video format.")), (NULL));
|
(("Failed to generate caps from video format.")), (NULL));
|
||||||
goto Error;
|
goto Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -600,7 +599,7 @@ gst_phoenixsrc_start (GstBaseSrc * src)
|
|||||||
|
|
||||||
ResourceSettingsError:
|
ResourceSettingsError:
|
||||||
GST_ELEMENT_ERROR (phoenixsrc, RESOURCE, SETTINGS,
|
GST_ELEMENT_ERROR (phoenixsrc, RESOURCE, SETTINGS,
|
||||||
(_("Failed to get Phoenix parameters.")), (NULL));
|
(("Failed to get Phoenix parameters.")), (NULL));
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
/* Now cease all captures */
|
/* Now cease all captures */
|
||||||
@ -736,7 +735,7 @@ gst_phoenixsrc_create (GstPushSrc * src, GstBuffer ** buf)
|
|||||||
eStat = PHX_Acquire (phoenixsrc->hCamera, PHX_START, (void *) phx_callback);
|
eStat = PHX_Acquire (phoenixsrc->hCamera, PHX_START, (void *) phx_callback);
|
||||||
if (PHX_OK != eStat) {
|
if (PHX_OK != eStat) {
|
||||||
GST_ELEMENT_ERROR (phoenixsrc, RESOURCE, FAILED,
|
GST_ELEMENT_ERROR (phoenixsrc, RESOURCE, FAILED,
|
||||||
(_("Failed to start acquisition.")), (NULL));
|
(("Failed to start acquisition.")), (NULL));
|
||||||
return GST_FLOW_ERROR; /* TODO: make sure _stop is called if this happens to release resources */
|
return GST_FLOW_ERROR; /* TODO: make sure _stop is called if this happens to release resources */
|
||||||
}
|
}
|
||||||
phoenixsrc->acq_started = TRUE;
|
phoenixsrc->acq_started = TRUE;
|
||||||
@ -751,7 +750,7 @@ gst_phoenixsrc_create (GstPushSrc * src, GstBuffer ** buf)
|
|||||||
if (phoenixsrc->fifo_overflow_occurred) {
|
if (phoenixsrc->fifo_overflow_occurred) {
|
||||||
/* TODO: we could offer to try and ABORT then re-START capture */
|
/* TODO: we could offer to try and ABORT then re-START capture */
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
||||||
(_("Acquisition failure due to FIFO overflow.")), (NULL));
|
(("Acquisition failure due to FIFO overflow.")), (NULL));
|
||||||
g_mutex_unlock (phoenixsrc->mutex);
|
g_mutex_unlock (phoenixsrc->mutex);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
@ -759,14 +758,14 @@ gst_phoenixsrc_create (GstPushSrc * src, GstBuffer ** buf)
|
|||||||
if (phoenixsrc->timeout_occurred) {
|
if (phoenixsrc->timeout_occurred) {
|
||||||
/* TODO: we could offer to try and ABORT then re-START capture */
|
/* TODO: we could offer to try and ABORT then re-START capture */
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
||||||
(_("Acquisition failure due to timeout.")), (NULL));
|
(("Acquisition failure due to timeout.")), (NULL));
|
||||||
g_mutex_unlock (phoenixsrc->mutex);
|
g_mutex_unlock (phoenixsrc->mutex);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!phoenixsrc->buffer_ready) {
|
if (!phoenixsrc->buffer_ready) {
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
||||||
(_("You should not see this error, something very bad happened.")),
|
(("You should not see this error, something very bad happened.")),
|
||||||
(NULL));
|
(NULL));
|
||||||
g_mutex_unlock (phoenixsrc->mutex);
|
g_mutex_unlock (phoenixsrc->mutex);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
@ -787,7 +786,7 @@ gst_phoenixsrc_create (GstPushSrc * src, GstBuffer ** buf)
|
|||||||
eStat = PHX_Acquire (phoenixsrc->hCamera, PHX_BUFFER_GET, &phx_buffer);
|
eStat = PHX_Acquire (phoenixsrc->hCamera, PHX_BUFFER_GET, &phx_buffer);
|
||||||
if (PHX_OK != eStat) {
|
if (PHX_OK != eStat) {
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
||||||
(_("Failed to get buffer.")), (NULL));
|
(("Failed to get buffer.")), (NULL));
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user