Revision c01d47e9

b/src/gst/videoSource.cpp
73 73
void VideoSource::setCapsFilter(const std::string &capsStr)
74 74
{
75 75
    tassert(capsFilter_ != 0);
76
    if (capsStr.empty())
77
        THROW_ERROR("Can't set capsfilter to empty string");
78

  
79
    if (capsStr == "ANY")   // don't bother setting caps
80
        THROW_ERROR("Trying to set caps to dummy value");
81

  
82 76
    GstCaps *videoCaps = gst_caps_from_string(capsStr.c_str());
83 77
    LOG_DEBUG("Setting caps to " << gst_caps_to_string(videoCaps));
84 78
    g_object_set(G_OBJECT(capsFilter_), "caps", videoCaps, NULL);

Also available in: Unified diff